On Fri, 5 Jan 2007, Pete Zaitcev wrote:

> On Fri, 5 Jan 2007 10:52:27 -0500 (EST), Alan Stern <[EMAIL PROTECTED]> wrote:
> 
> > We are led to the following reasoning:
> > 
> >     CB and CBI can't pass the LUN value as a control parameter,
> >     but only as part of the CDB.
> > 
> >     If scsi_level is 0 then the LUN value won't be passed in the CDB.
> > 
> >     Hence any device using CB or CBI with scsi_level == 0 _must_
> >     be single-LUN.
> > 
> > Pete, I imagine this will solve your problem better than your proposed 
> > change.
> 
> I'll give it a whirl, but not sure when exactly. Bad day today...
> 
> Another thing I forgot to mention, the device hangs in data phase after
> MODE SENSE, 0x1A. It may be posting an error interrupt, but we do not
> see it. The UFI says that only 0x5A is recognized, so... I'll yap about
> this later, and maybe post a patch (if I figure how to kill sg_wait
> in progress).

I don't see how that could happen.  We have this code in 
slave_configure():

                /* Disk-type devices use MODE SENSE(6) if the protocol
                 * (SubClass) is Transparent SCSI, otherwise they use
                 * MODE SENSE(10). */
                if (us->subclass != US_SC_SCSI)
                        sdev->use_10_for_ms = 1;

That's supposed to tell the SCSI core to use MODE SENSE(10) commands
(0x5a) rather than MODE SENSE(6) (0x1a).

Alan Stern


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to