USB mass storage fails to register on kernel 2.6.32
Hi there,
I have a Samsung Story external USB-2.0 1.5TB drive that fails to detect as a device in more recent kernel versions. Full kmsg details are below. Note that a USB thumb drive works fine on my system. Older kernels work fine with the Samsung also. In terms of which version of the kernel this stopped working, this I don't know.
uname -a gives:
Linux version 2.6.32-23-generic (buildd@rothera) (gcc version
4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #37-Ubuntu SMP Fri Jun 11
07:54:58 UTC 2010My kmsg output when plugging in the drive is as follows:
<6>[ 244.624034] usb 1-10: new high speed USB device using ehci_hcd
and address 3
<3>[ 244.780033] usb 1-10: device descriptor read/64, error -32
<3>[ 245.036030] usb 1-10: device descriptor read/64, error -32
<6>[ 245.252038] usb 1-10: new high speed USB device using ehci_hcd
and address 4
<3>[ 245.862496] usb 1-10: unable to read config index 0
descriptor/start: -71
<3>[ 245.862615] usb 1-10: chopping to 0 config(s)
<3>[ 245.979496] usb 1-10: string descriptor 0 read error: -71
<4>[ 245.980413] usb 1-10: no configuration chosen from 0 choicesWhen plugging in my thumb drive I get the expected results:
<6>[ 135.216034] usb 1-10: new high speed USB device using ehci_hcd
and address 2
<6>[ 135.352726] usb 1-10: configuration #1 chosen from 1 choice
<6>[ 135.410021] Initializing USB Mass Storage driver...
<6>[ 135.410186] scsi6 : SCSI emulation for USB Mass Storage
devices
<6>[ 135.410460] usbcore: registered new interface driver
usb-storage
<6>[ 135.410466] USB Mass Storage support registered.
<7>[ 135.414677] usb-storage: device found at 2
<7>[ 135.414682] usb-storage: waiting for device to settle before
scanning
<7>[ 140.412291] usb-storage: device scan complete
<5>[ 140.414270] scsi 6:0:0:0: Direct-Access USB Flash
Disk 1100 PQ: 0 ANSI: 0 CCS
<5>[ 140.417527] sd 6:0:0:0: Attached scsi generic sg3 type 0
<5>[ 140.419744] sd 6:0:0:0: [sdc] 1014784 512-byte logical blocks:
(519 MB/495 MiB)
<5>[ 140.424490] sd 6:0:0:0: [sdc] Write Protect is off
<7>[ 140.424500] sd 6:0:0:0: [sdc] Mode Sense: 43 00 00 00
<3>[ 140.424506] sd 6:0:0:0: [sdc] Assuming drive cache: write
through
<3>[ 140.428511] sd 6:0:0:0: [sdc] Assuming drive cache: write
through
<6>[ 140.428631] sdc: sdc1
<3>[ 140.494141] sd 6:0:0:0: [sdc] Assuming drive cache: write
through
<5>[ 140.494261] sd 6:0:0:0: [sdc] Attached SCSI removable diskusb-devices output is as follows:
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh=10
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=02.06
S: Manufacturer=Linux 2.6.32-23-generic ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:02.1
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub T: Bus=01 Lev=01 Prnt=01 Port=09 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 0
P: Vendor=04e8 ProdID=5f06 Rev=00.00
S: Manufacturer=JMicron
S: SerialNumber=0000002CE09310500626
C: #Ifs= 0 Cfg#= 0 Atr= MxPwr=
cat: /sys/bus/usb/devices/usb1/1-10/1-*:?.*/bInterfaceNumber: No
such file or directory
cat: /sys/bus/usb/devices/usb1/1-10/1-*:?.*/bAlternateSetting: No
such file or directory
cat: /sys/bus/usb/devices/usb1/1-10/1-*:?.*/bNumEndpoints: No such
file or directory
cat: /sys/bus/usb/devices/usb1/1-10/1-*:?.*/bInterfaceClass: No such
file or directory
cat: /sys/bus/usb/devices/usb1/1-10/1-*:?.*/bInterfaceSubClass: No
such file or directory
cat: /sys/bus/usb/devices/usb1/1-10/1-*:?.*/bInterfaceProtocol: No
such file or directory
/usr/bin/usb-devices: line 79: printf: (none): invalid number
I: If#= 0 Alt= 0 #EPs= 0 Cls=() Sub= Prot= Driver=
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh=10
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev=02.06
S: Manufacturer=Linux 2.6.32-23-generic ohci_hcd
S: Product=OHCI Host Controller
S: SerialNumber=0000:00:02.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hubI think this might be a related problem:
http://quantan.blogspot.com/2010/03/ubuntu-1004-lts-b1-dan-usb-modem-gsm.html
I will be unsubscribing from these lists after sending this bug report, so please contact me directly if you need more info at paulsheer at gmail
-paul
Quoted 6 lines · Paul Sheer
I have a Samsung Story external USB-2.0 1.5TB drive that fails to detect as a device in more recent kernel versions. Full kmsg details are below. Note that a USB thumb drive works fine on my system. Older kernels work fine with the Samsung also. In terms of which version of the kernel this stopped working, this I don't know.
Can you bisect this problem maybe?
Daniel
Quoted 6 lines · Daniel Mack
Quoted 2 lines · Paul Sheer
I have a Samsung Story external USB-2.0 1.5TB drive that fails to detect as a device in more recent kernel versions. Full kmsg details
Can you bisect this problem maybe?
I would love to but I don't have the time unfortunately.
If someone is interested in fixing this I can send them a new Samsung Story by mail.
Any takers?
-paul
Quoted 7 lines · Paul Sheer
Hi there,
I have a Samsung Story external USB-2.0 1.5TB drive that fails to detect as a device in more recent kernel versions. Full kmsg details are below. Note that a USB thumb drive works fine on my system. Older kernels work fine with the Samsung also. In terms of which version of the kernel this stopped working, this I don't know.
Are you certain this is related to the kernel version and isn't just a bad USB connection or something of that sort? Have you tried plugging the Samsung drive into a different computer running a recent kernel?
Quoted 14 lines
My kmsg output when plugging in the drive is as follows:
<6>[ 244.624034] usb 1-10: new high speed USB device using ehci_hcd and address 3 <3>[ 244.780033] usb 1-10: device descriptor read/64, error -32 <3>[ 245.036030] usb 1-10: device descriptor read/64, error -32 <6>[ 245.252038] usb 1-10: new high speed USB device using ehci_hcd and address 4 <3>[ 245.862496] usb 1-10: unable to read config index 0 descriptor/start: -71 <3>[ 245.862615] usb 1-10: chopping to 0 config(s) <3>[ 245.979496] usb 1-10: string descriptor 0 read error: -71 <4>[ 245.980413] usb 1-10: no configuration chosen from 0 choices
These -71 errors are what you typically get when a device stops responding or the USB signals aren't transmitted properly.
Quoted 3 lines
I will be unsubscribing from these lists after sending this bug report, so please contact me directly if you need more info at paulsheer at gmail
You know, it's not necessary to subscribe to the mailing lists before posting messages on them.
Alan Stern
patch? Re: USB mass storage fails to register on kernel 2.6.32
In reply to Paul SheerOk, I changed the cable and it works perfectly.
I suggest the following patch then:
drivers/usb/core/hub.c.new 2010-07-04 17:10:28.000000000 +0200 renamed from drivers/usb/core/hub.c 2010-06-11 09:54:26.000000000 +0200 +0 -0
@@ -2777,12 +2777,12 @@
retval = -ENODEV;
goto fail;
}
if (r) {
dev_err(&udev->dev,
- "device descriptor read/64, error %d\n",
- r);
+ "device descriptor read/64, error %d%s\n",
+ r, r == -32 ? ": bad cable?" : "");
retval = -EMSGSIZE;
continue;
}
#undef GET_DESCRIPTOR_BUFSIZE
}
I guess this closes this issue.
Kind regards
-paul
Quoted 8 lines · Paul Sheer
Hi there,
I have a Samsung Story external USB-2.0 1.5TB drive that fails to detect as a device in more recent kernel versions. Full kmsg details are below. Note that a USB thumb drive works fine on my system. Older kernels work fine with the Samsung also. In terms of which version of the kernel this stopped working, this I don't know.
Re: patch? Re: USB mass storage fails to register on kernel 2.6.32
In reply to a message not in the archiveQuoted 2 lines · Paul Sheer
Ok, I changed the cable and it works perfectly.
Great, thanks for letting us know.
greg k-h