I'm using a usb-storage device which identifies itself as manufacturer JMTek and product id 5. Kernel is 2.4.18 (pristine). It's similar to the device mentioned in this message:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg13255.html
And very similar to a device mentioned in linux-2.4.18/drivers/usb/storage/unusual_devs.h which is product id 3.
I've tried adding a section to unusual_devs.h as suggested by Alan Stern in the above message. That section is:


/* Same as above, for product id 5, seems to have similar problem.
 * Needed for START_STOP flag */
UNUSUAL_DEV(  0x0c76, 0x0005, 0x0100, 0x0100,
                "JMTek",
                "USBDrive",
                US_SC_SCSI, US_PR_BULK, NULL,
                US_FL_START_STOP | US_FL_MODE_XLATE ),

However, the usb-storage kernel thread still hangs in disk wait when the device is connected. Oddly, this happens only on some machines even though I've tried on several with the same architecture. The usb controller is:
Intel Corporation 82371AB PIIX4 USB


It seems that this usb-storage device has already caused some consternation, perhaps I've found another revision that needs special attention? See below for logs.

Thanks in advance for any tips,
Alex Eagle

processes after connecting:

root 2 0.1 0.0 0 0 ? SW 15:29 0:00 [keventd]
root 1149 0.0 0.2 2320 1164 ? S 15:30 0:00 \_ /bin/bash /etc/hotplug/usb.agent
root 1174 0.0 0.2 1948 1084 ? D 15:30 0:00 \_ /sbin/modprobe -vs usb-storage
root 1175 0.0 0.0 0 0 ? SW 15:30 0:00 \_ [usb-storage-0]
root 1176 0.0 0.0 0 0 ? DW 15:30 0:00 \_ [scsi_eh_0]



in /var/log/messages (with kernel's usb debug and usb-storage debug on verbose):


Jul 10 15:30:47 cstation kernel: hub.c: USB new device connect on bus1/2, assigned device number 3
Jul 10 15:30:47 cstation kernel: SCSI subsystem driver Revision: 1.00
Jul 10 15:30:47 cstation kernel: Initializing USB Mass Storage driver...
Jul 10 15:30:47 cstation kernel: usb.c: registered new driver usb-storage
Jul 10 15:30:47 cstation kernel: usb-storage: act_altsettting is 0
Jul 10 15:30:47 cstation kernel: usb-storage: id_index calculated to be: 41
Jul 10 15:30:47 cstation kernel: usb-storage: Array length appears to be: 62
Jul 10 15:30:47 cstation kernel: usb-storage: Vendor: JMTek
Jul 10 15:30:47 cstation kernel: usb-storage: Product: USBDrive
Jul 10 15:30:47 cstation kernel: usb-storage: USB Mass Storage device detected
Jul 10 15:30:47 cstation kernel: usb-storage: Endpoints: In: 0xdb0a59a0 Out: 0xdb0a59b4 Int: 0xdb0a59c8 (Period 255)
Jul 10 15:30:47 cstation kernel: usb-storage: New GUID 0c7600050000000000000000
Jul 10 15:30:47 cstation kernel: usb-storage: GetMaxLUN command result is 0, data is 219
Jul 10 15:30:47 cstation kernel: usb-storage: Transport: Bulk
Jul 10 15:30:47 cstation kernel: usb-storage: Protocol: Transparent SCSI
Jul 10 15:30:47 cstation kernel: usb-storage: *** thread sleeping.
Jul 10 15:30:47 cstation kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jul 10 15:30:47 cstation kernel: usb-storage: queuecommand() called
Jul 10 15:30:47 cstation kernel: usb-storage: *** thread awakened.
Jul 10 15:30:47 cstation kernel: usb-storage: Command INQUIRY (6 bytes)
Jul 10 15:30:47 cstation kernel: usb-storage: 12 00 00 00 ff 00 04 db c4 c3 1c c0
Jul 10 15:30:47 cstation kernel: usb-storage: Invoking Mode Translation
Jul 10 15:30:47 cstation kernel: usb-storage: Bulk command S 0x43425355 T 0x1 Trg 0 LUN 0 L 255 F 128 CL 6
Jul 10 15:30:47 cstation kernel: usb.c: kmalloc IF d40dcec0, numif 1
Jul 10 15:30:47 cstation kernel: usb-storage: Bulk command transfer result=0
Jul 10 15:30:47 cstation kernel: usb-storage: usb_stor_transfer_partial(): xfer 255 bytes
Jul 10 15:30:47 cstation kernel: usb.c: new device strings: Mfr=0, Product=1, SerialNumber=0
Jul 10 15:30:47 cstation kernel: usb.c: USB device number 3 default language ID 0x409
Jul 10 15:30:47 cstation kernel: usb-storage: usb_stor_bulk_msg() returned 0 xferred 41/255
Jul 10 15:30:47 cstation kernel: usb-storage: Bulk data transfer result 0x1
Jul 10 15:30:47 cstation kernel: usb-storage: Attempting to get CSW...
Jul 10 15:30:47 cstation kernel: Product: General Purpose USB Hub
Jul 10 15:30:47 cstation kernel: hub.c: USB hub found
Jul 10 15:30:47 cstation kernel: hub.c: 3 ports detected
Jul 10 15:30:47 cstation kernel: hub.c: standalone hub
Jul 10 15:30:47 cstation kernel: hub.c: individual port power switching
Jul 10 15:30:47 cstation kernel: hub.c: individual port over-current protection
Jul 10 15:30:47 cstation kernel: hub.c: Port indicators are not supported
Jul 10 15:30:47 cstation kernel: hub.c: power on to power good time: 100ms
Jul 10 15:30:47 cstation kernel: hub.c: hub controller current requirement: 100mA
Jul 10 15:30:47 cstation kernel: hub.c: port removable status: RRR
Jul 10 15:30:47 cstation kernel: hub.c: local power source is good
Jul 10 15:30:47 cstation kernel: hub.c: no over-current condition exists
Jul 10 15:30:47 cstation kernel: hub.c: enabling power on all ports
Jul 10 15:30:48 cstation kernel: usb.c: hub driver claimed interface d40dcec0
Jul 10 15:30:48 cstation kernel: usb.c: kusbd: /sbin/hotplug add 3
Jul 10 15:30:53 cstation kernel: usb-storage: command_abort() called
Jul 10 15:30:53 cstation kernel: usb-storage: Bulk status result = -104
Jul 10 15:30:53 cstation kernel: usb-storage: Bulk reset requested
Jul 10 15:30:59 cstation kernel: usb-storage: Bulk soft reset completed
Jul 10 15:30:59 cstation kernel: usb-storage: -- transport indicates transport failure
Jul 10 15:30:59 cstation kernel: usb-storage: Fixing INQUIRY data to show SCSI rev 2
Jul 10 15:30:59 cstation kernel: usb-storage: scsi cmd done, result=0x70000
Jul 10 15:30:59 cstation kernel: usb-storage: *** thread sleeping.




-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to