Date: Tue, 13 Mar 2001 08:40:58 +0100 (CET) From: Soren Schmidt <sos@freebsd.dk> To: imp@harmony.village.org (Warner Losh) Cc: sos@FreeBSD.ORG, mobile@FreeBSD.ORG Subject: Re: iomega clik! Message-ID: <200103130740.IAA63705@freebsd.dk> In-Reply-To: <200103130331.f2D3VPI42148@harmony.village.org> from Warner Losh at "Mar 12, 2001 08:31:25 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
It seems Warner Losh wrote: > In message <200103121017.LAA45917@freebsd.dk> Soren Schmidt writes: > : OK, here is the "official" patch for the clik, the detach part > : is handled by another patch set I have in the wings, that deals > : with prober detach/attach of devices, but thats for another time.. > : Anyhow I cannot test this, so please let me know if this makes > : the clik work... > > This won't work. The clik! cannot execute afd_prevent_allow(). > That's why I added the iomega_clik to the softc. Thats why I have this in the patch: @@ -423,5 +452,8 @@ int8_t ccb[16] = { ATAPI_PREVENT_ALLOW, 0, 0, 0, lock, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; - return atapi_queue_cmd(fdp->atp, ccb, NULL, 0, 0,30, NULL, NULL); + if (!strncmp(ATA_PARAM(fdp->atp->controller, fdp->atp->unit)->model, + "IOMEGA Clik!", 12)) + return 0; + return atapi_queue_cmd(fdp->atp, ccb, NULL, 0, 0, 30, NULL, NULL); } -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103130740.IAA63705>