On Tue, 27 Jun 2006, frode isaksen wrote: > > Are you absolutely certain these devices need the FIX_INQUIRY flag? > > Windows also uses an INQUIRY command, you know -- do they work under > > Windows? Is there maybe a firmware update available for the devices > > to make them handle INQUIRY correctly? > > It works fine under "normal" linux as well, it doesn't really need > the vendor/profuct name. However, for an embedded linux, the vendor/ > model name was needed, so I added the FIX_INQUIRY.
Preumably you mean that it works okay without FIX_INQUIRY but the vendor and model names end up being blank, and some application on the embedded system needed those names to be non-blank. > > > > Can you provide a usbmon trace or usb-storage verbose debugging log > > showing what happens when you don't use FIX_INQUIRY? > > I added the dump of the hex characters is scsi_scan.c, and as you can > see, the name is there but the length (in inq_result[4]) is 0. > The solution is maybe to force inq_result[4] to something (31) if 0 > in scsi_probe_lun ??? I don't know. There's a big XXX comment in scsi_probe_lun() about what to do if the INQUIRY response is short or not entirely valid, which would be the case if inq_result[4] < 31. Basically the device is saying that it doesn't contain any vendor or product name information. What would you have done if this wasn't a USB device, so there was no FIX_INQUIRY option available? Alan Stern Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel