linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* USB mass storage fails to register on kernel 2.6.32
@ 2010-07-04  8:03 Paul Sheer
  2010-07-04  9:11 ` Daniel Mack
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Paul Sheer @ 2010-07-04  8:03 UTC (permalink / raw)
  To: linux-kernel, zaitcev, linux-usb-devel, dbrownell, johannes,
	mdharm-usb, gregkh, stern, paulsheer


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 2010



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




When 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 disk




usb-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=hub


I 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






^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: USB mass storage fails to register on kernel 2.6.32
  2010-07-04  8:03 USB mass storage fails to register on kernel 2.6.32 Paul Sheer
@ 2010-07-04  9:11 ` Daniel Mack
  2010-07-04 10:13   ` Paul Sheer
  2010-07-04 13:02 ` Alan Stern
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Daniel Mack @ 2010-07-04  9:11 UTC (permalink / raw)
  To: Paul Sheer
  Cc: linux-kernel, zaitcev, linux-usb-devel, dbrownell, johannes,
	mdharm-usb, gregkh, stern, paulsheer

On Sun, Jul 04, 2010 at 10:03:03AM +0200, Paul Sheer wrote:
> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: USB mass storage fails to register on kernel 2.6.32
  2010-07-04  9:11 ` Daniel Mack
@ 2010-07-04 10:13   ` Paul Sheer
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Sheer @ 2010-07-04 10:13 UTC (permalink / raw)
  To: linux-kernel, linux-usb, Daniel Mack


On Sun, 2010-07-04 at 11:11 +0200, Daniel Mack wrote:
> On Sun, Jul 04, 2010 at 10:03:03AM +0200, Paul Sheer wrote:
> > 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






^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: USB mass storage fails to register on kernel 2.6.32
  2010-07-04  8:03 USB mass storage fails to register on kernel 2.6.32 Paul Sheer
  2010-07-04  9:11 ` Daniel Mack
@ 2010-07-04 13:02 ` Alan Stern
  2010-07-04 16:05 ` patch? " Paul Sheer
       [not found] ` <1278255773.6443.82.camel@localhost>
  3 siblings, 0 replies; 6+ messages in thread
From: Alan Stern @ 2010-07-04 13:02 UTC (permalink / raw)
  To: Paul Sheer
  Cc: Kernel development list, Pete Zaitcev, linux-usb, dbrownell,
	johannes, Matthew Dharm, gregkh, paulsheer

On Sun, 4 Jul 2010, Paul Sheer wrote:

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

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

> 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* patch? Re: USB mass storage fails to register on kernel 2.6.32
  2010-07-04  8:03 USB mass storage fails to register on kernel 2.6.32 Paul Sheer
  2010-07-04  9:11 ` Daniel Mack
  2010-07-04 13:02 ` Alan Stern
@ 2010-07-04 16:05 ` Paul Sheer
       [not found] ` <1278255773.6443.82.camel@localhost>
  3 siblings, 0 replies; 6+ messages in thread
From: Paul Sheer @ 2010-07-04 16:05 UTC (permalink / raw)
  To: linux-kernel


Ok, I changed the cable and it works perfectly.

I suggest the following patch then:

--- ./drivers/usb/core/hub.c 2010-06-11 09:54:26.000000000 +0200
+++ ./drivers/usb/core/hub.c.new 2010-07-04 17:10:28.000000000 +0200
@@ -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


On Sun, 2010-07-04 at 10:03 +0200, Paul Sheer wrote:
> 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.
> 



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: patch? Re: USB mass storage fails to register on kernel 2.6.32
       [not found] ` <1278255773.6443.82.camel@localhost>
@ 2010-07-05 17:06   ` Greg KH
  0 siblings, 0 replies; 6+ messages in thread
From: Greg KH @ 2010-07-05 17:06 UTC (permalink / raw)
  To: Paul Sheer
  Cc: linux-kernel, zaitcev, linux-usb-devel, dbrownell, johannes,
	mdharm-usb, stern, paulsheer

On Sun, Jul 04, 2010 at 05:02:53PM +0200, Paul Sheer wrote:
> 
> Ok, I changed the cable and it works perfectly.

Great, thanks for letting us know.

greg k-h

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-07-05 17:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-04  8:03 USB mass storage fails to register on kernel 2.6.32 Paul Sheer
2010-07-04  9:11 ` Daniel Mack
2010-07-04 10:13   ` Paul Sheer
2010-07-04 13:02 ` Alan Stern
2010-07-04 16:05 ` patch? " Paul Sheer
     [not found] ` <1278255773.6443.82.camel@localhost>
2010-07-05 17:06   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).