Le 21 juin 06 à 16:58, Alan Stern a écrit :

> On Wed, 21 Jun 2006, frode isaksen wrote:
>
>> Same problem as with the other ScanLogic device. Either add a
>> separate entry (patch provided) or change the bcdDeviceMin in the
>> other ScanLogic entry.
>>
>> Frode Isaksen
>>
>>     Host scsi0: usb-storage
>>         Vendor: ScanLogic SC0.632
>>        Product: ScanLogic SC0.632
>> Serial Number: ScanLogic SC0.632
>>       Protocol: Transparent SCSI
>>      Transport: Bulk
>>         Quirks: FIX_INQUIRY
>> ~
>>
>>
>> --- unusual_devs.h.orig.h    2006-06-05 19:18:23.000000000 +0200
>> +++ unusual_devs.h   2006-06-21 14:09:41.000000000 +0200
>> @@ -258,6 +258,15 @@
>>              US_SC_DEVICE, US_PR_DEVICE, NULL,
>>              US_FL_FIX_INQUIRY),
>>
>> +/* ScanLogic SCO.632 SmartMedia CARD READER <[EMAIL PROTECTED]>
>> + * The device needs the flags only.
>> + */
>> +UNUSUAL_DEV(  0x04ce, 0x0002, 0x0063, 0x0063,
>> +            "ScanLogic",
>> +            "SmartMedia-CR",
>> +            US_SC_DEVICE, US_PR_DEVICE, NULL,
>> +            US_FL_FIX_INQUIRY),
>> +
>>   /* Reported by Kriston Fincher <[EMAIL PROTECTED]>
>>    * Patch submitted by Sean Millichamp <[EMAIL PROTECTED]>
>>    * This is to support the Panasonic PalmCam PV-SD4090
>
> 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.

>
> 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 ???

Hilsen,
Frode

>
> Alan Stern
>

Jun 27 12:05:02 localhost kernel: [17181009.296000] usb-storage:  
queuecommand called
Jun 27 12:05:02 localhost kernel: [17181009.296000] usb-storage: ***  
thread awakened.
Jun 27 12:05:02 localhost kernel: [17181009.296000] usb-storage:  
Command INQUIRY (6 bytes)
Jun 27 12:05:02 localhost kernel: [17181009.296000] usb-storage:  12  
00 00 00 24 00
Jun 27 12:05:02 localhost kernel: [17181009.296000] usb-storage: Bulk  
Command S 0x43425355 T 0x1 L 36 F 128 Trg 0 LUN 0 CL 6
Jun 27 12:05:02 localhost kernel: [17181009.296000] usb-storage:  
usb_stor_bulk_transfer_buf: xfer 31 bytes
Jun 27 12:05:02 localhost kernel: [17181009.296000] usb-storage:  
Status code 0; transferred 31/31
Jun 27 12:05:02 localhost kernel: [17181009.296000] usb-storage: --  
transfer complete
Jun 27 12:05:02 localhost kernel: [17181009.296000] usb-storage: Bulk  
command transfer result=0
Jun 27 12:05:02 localhost kernel: [17181009.296000] usb-storage:  
usb_stor_bulk_transfer_sglist: xfer 36 bytes, 1 entries
Jun 27 12:05:02 localhost kernel: [17181009.296000] usb-storage:  
Status code 0; transferred 36/36
Jun 27 12:05:02 localhost kernel: [17181009.296000] usb-storage: --  
transfer complete
Jun 27 12:05:02 localhost kernel: [17181009.296000] usb-storage: Bulk  
data transfer result 0x0
Jun 27 12:05:02 localhost kernel: [17181009.296000] usb-storage:  
Attempting to get CSW...
Jun 27 12:05:02 localhost kernel: [17181009.296000] usb-storage:  
usb_stor_bulk_transfer_buf: xfer 13 bytes
Jun 27 12:05:02 localhost kernel: [17181009.300000] usb-storage:  
Status code 0; transferred 13/13
Jun 27 12:05:02 localhost kernel: [17181009.300000] usb-storage: --  
transfer complete
Jun 27 12:05:02 localhost kernel: [17181009.300000] usb-storage: Bulk  
status result = 0
Jun 27 12:05:02 localhost kernel: [17181009.300000] usb-storage: Bulk  
Status S 0x53425355 T 0x1 R 0 Stat 0x0
Jun 27 12:05:02 localhost kernel: [17181009.300000] usb-storage: scsi  
cmd done, result=0x0
Jun 27 12:05:02 localhost kernel: [17181009.300000] usb-storage: ***  
thread sleeping.
Jun 27 12:05:02 localhost kernel: [17181009.300000] response_len=5
Jun 27 12:05:02 localhost kernel: [17181009.300000]   Vendor:  
(len=5)........ 5363616e4c6f6769
Jun 27 12:05:02 localhost kernel: [17181009.300000]    
Model: ................ 63205343302e36333820002000200020
Jun 27 12:05:02 localhost kernel: [17181009.300000]   Rev: .... 00200020
Jun 27 12:05:02 localhost kernel: [17181009.300000]   Type:   Direct- 
Access                      ANSI SCSI revision: 01
Jun 27 12:05:02 localhost kernel: [17181009.308000] usb-storage:  
queuecommand called

J



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

Reply via email to