Re: USB Mass Storage devices continually reenumerate

Mike Nuss <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Alan Stern wrote:
> About all you can do is what I suggested earlier: Plug the device into
> a powered hub, which most likely will provide enough current for the
> device's needs.  If the device then works, you will know that the host
> doesn't provide enough current.  If it doesn't, that's a reasonably 
> good indication that the current draw isn't the source of the problem.

OK. I'm using a Dynex hub which claims to be self-powered. Now the hub
itself sometimes gets disconnected when I plug in a flash drive:

18:24:52 usb 1-2.1: new full speed USB device using ohci_hcd and address 82
18:24:52 usb 1-2.1: Product: U3 Cruzer Micro
18:24:52 usb 1-2.1: Manufacturer: SanDisk Corporation
18:24:53 usb 1-2.1: SerialNumber: 0000184AA4731482
18:24:53 usb 1-2.1: configuration #1 chosen from 1 choice
18:24:53 scsi78 : SCSI emulation for USB Mass Storage devices
18:24:58 scsi 78:0:0:0: Direct-Access     SanDisk  U3 Cruzer Micro  4.04
PQ: 0 ANSI: 2
18:24:58 7>usb-storage: Status code 0; transferred 31/31
18:24:58 sd 78:0:0:0: [sda] 3999377 512-byte hardware sectors (2048 MB)
18:24:59 sd 78:0:0:0: [sda] Write Protect is off
18:25:01 sd 78:0:0:0: [sda] 3999377 512-byte hardware sectors (2048 MB)
18:25:01 sd 78:0:0:0: [sda] Write Protect is off
18:25:01  sda:<7>usb-storage: queuecommand called
18:25:01 usb 1-2: USB disconnect, address 81
18:25:01 usb 1-2.1: USB disconnect, address 82
18:25:02 sd 78:0:0:0: [sda] Result: hostbyte=0x07 driverbyte=0x00
18:25:02 sd 78:0:0:0: [sda] Result: hostbyte=0x01 driverbyte=0x00
18:25:02 sd 78:0:0:0: [sda] Attached SCSI removable disk
18:25:02 usb 1-2: new full speed USB device using ohci_hcd and address 83
18:25:02 usb 1-2: configuration #1 chosen from 1 choice
18:25:02 hub 1-2:1.0: USB hub found
18:25:02 hub 1-2:1.0: 4 ports detected
18:25:03 usb 1-2.1: new full speed USB device using ohci_hcd and address 84
18:25:10 usb 1-2.1: new full speed USB device using ohci_hcd and address 85
18:25:12 usb 1-2: USB disconnect, address 83

In the debug log, I see that it's unable to reenable the port on the hub:

18:25:03 hub 1-2:1.0: enabling power on all ports
18:25:03 drivers/usb/core/inode.c: creating file '083'
18:25:03 hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0004
18:25:03 hub 1-2:1.0: state 7 ports 4 chg 0000 evt 0000
18:25:03 hub 1-2:1.0: port 1, status 0101, change 0001, 12 Mb/s
18:25:03 hub 1-2:1.0: debounce: port 1: total 100ms stable 100ms status
0x101
18:25:03 hub 1-2:1.0: port 1 not reset yet, waiting 10ms
18:25:04 usb 1-2.1: khubd timed out on ep0in len=0/64
18:25:04 ohci_hcd 0000:00:13.0: urb c11bb260 path 2.1 ep0in 5ec20000 cc
5 --> status -62
18:25:04 ohci_hcd 0000:00:13.0: urb c11bb260 path 2.1 ep0in 5ec20000 cc
5 --> status -62
18:25:04 hub 1-2:1.0: port 1 not reset yet, waiting 10ms
18:25:09 usb 1-2.1: khubd timed out on ep0in len=0/64
18:25:09 ohci_hcd 0000:00:13.0: urb c11bb260 path 2.1 ep0in 5ec20000 cc
5 --> status -62
18:25:09 ohci_hcd 0000:00:13.0: urb c11bb260 path 2.1 ep0in 5ec20000 cc
5 --> status -62
18:25:09 hub 1-2:1.0: port 1 not reset yet, waiting 10ms
18:25:09 hub 1-2:1.0: port 1 not reset yet, waiting 10ms
18:25:12 ohci_hcd 0000:00:13.0: urb c11bb260 path 2.1 ep0in 5fd60000 cc
5 --> status -62
18:25:12 ohci_hcd 0000:00:13.0: urb c11bb260 path 2.1 ep0in 5ec20000 cc
5 --> status -62
18:25:12 ohci_hcd 0000:00:13.0: urb c11bb260 path 2.1 ep0in 5ec20000 cc
5 --> status -62
18:25:12 ohci_hcd 0000:00:13.0: urb c11bb260 path 2 ep0out 5ec20000 cc 5
--> status -62
18:25:12 hub 1-2:1.0: port 1 not enabled, trying reset again...

Mike

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.