Le 27 juin 06 à 18:03, Alan Stern a écrit : > 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. Yes, exactly... > >>> >>> 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. Yes, but the info is there....
> > What would you have done if this wasn't a USB device, so there was no > FIX_INQUIRY option available? The solution I propose is: If the response length( inq_result[4] is zero and the vendor and device contains valid strings, set the length inq_result[4] to 31 I can provide and test a patch if you are interested... Hilsen, Frode > > 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