On Thu, 4 Jan 2007 16:13:40 -0800, Matthew Dharm <[EMAIL PROTECTED]> wrote: > On Thu, Jan 04, 2007 at 04:01:19PM -0800, Pete Zaitcev wrote:
> > ffff81003f5575c0 1779789944 S Co:004:00 s 21 00 0000 0000 000c 12 = > > 12200000 24000000 00000000 > > ffff81003f5575c0 1779792226 C Co:004:00 0 12 > > > ffff8100374c2980 1779792240 S Bi:004:01 -115 36 < > > ffff8100374c2980 1779795215 C Bi:004:01 0 36 = 00800001 1f000000 414d4920 > > 20202020 56697274 75616c20 466c6f70 70792020 > > ffff81003f5575c0 1779795226 S Ii:004:03 -115 2 < > > ffff81003f5575c0 1779821221 C Ii:004:03 0 2 = 0000 > > What exactly happens? I would assume that an error response to an INQUIRY > for LUN 1 would "Do the Right Thing". The exchange quoted above is exactly what happens. For the CBI transport, we ignore the LUN in srb->device->lun and simply pass the command on; the command has LUN bits set by the SCSI stack as if the command was directed at parallel SCSI (is it what they call SPI?). This is discussed in UFI 3.2.2. The above example addresses LUN 1. The inquiry data is for something shipped by AMI (a BIOS company: apparently they diversified into all kinds of firmware). It claims legacy SCSI compliance (not even SCSI II). > > case US_SC_UFI: > > us->protocol_name = "Uniform Floppy Interface (UFI)"; > > us->proto_handler = usb_stor_ufi_command; > > + us->max_lun = 0; > > break; > > Have anyone ever seen a multi-headed USB floppy? > > I've seen floppy/CF and floppy/CD-ROM combinations on multiple LUNs. I've > gotten e-mail from people with multiple-head floppies. I've never seen > one, personally. I think floppy/CF probably wasn't a UFI protocol thing... So my patch would continue to work. But a multi-head floppy sounds worrying. The UFI spec talks about LUNs as if they they ought to be used for something. But still, if nobody ever seen such things, I am willing to risk it. -- Pete ------------------------------------------------------------------------- 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