On 24.10.2012 10:12, Alan Stern wrote: > On Wed, 24 Oct 2012, Matthias Schniedermeyer wrote: > > > Hi > > > > > > I have a 3TB WD HDD in an USB3 enclosure that fails to show up if i > > connect the USB3-cable first and then switch on the enclosure. > > (Example-Log see below) > > > > If i either: > > - Wait a little before connecting the USB3-cable > > - Disconnect/Reconnect the USB3-cable > > - rmmod xhci; modprobe xhci > > The HDD shows up and works normally. > > > > Question is, is there something that i can do that doesn't involve > > 'rmmod'ing the xhci-driver or doing something physical? > > Is there a way to force a "rescan"? > > For e.g. is there something that i can do to a sysfs-file to force a > > "rescan" of the USB-port? > > Or can i prolong the timeout, which appears to be 5 seconds. > > The 5-second limit is part of the USB-2 specification (sections 9.2.6.1 > and 9.2.6.4). > > > Kernel in this case is a vanilla 3.6.2. > > xhci should be Intel but could also be from ASMedia (Z77-Chipset > > mainboard with 2 additional ASMedia chips soldered on) > > If more information is needed, i will happily provide it. > > > > > > First i connected the USB3-cable and then powered up the device: > > Oct 23 20:25:02 leeloo kernel: [852502.177231] usb 2-3: new SuperSpeed USB device number 2 using xhci_hcd > > Oct 23 20:25:12 leeloo kernel: [852512.178456] usb 2-3: New USB device found, idVendor=174c, idProduct=5106 > > Oct 23 20:25:12 leeloo kernel: [852512.178460] usb 2-3: New USB device strings: Mfr=2, Product=3, SerialNumber=1 > > Oct 23 20:25:12 leeloo kernel: [852512.178462] usb 2-3: Product: AS2105 > > Oct 23 20:25:12 leeloo kernel: [852512.178465] usb 2-3: Manufacturer: ASMedia > > Oct 23 20:25:17 leeloo kernel: [852517.173409] usb 2-3: can't set config #1, error -110 > > According to this, it should work if you do: > > echo 1 >/sys/bus/usb/devices/2-3/bConfigurationValue > > Note that the "2-3" part may change from time to time. Always use the > values the showed up in the log when the device was turned on. This didn't work: I tried it twice, with a few minutes wait in between: - snip - leeloo:~ # echo 1 >/sys/bus/usb/devices/2-3/bConfigurationValue -bash: echo: write error: Invalid argument leeloo:~ # echo 1 >/sys/bus/usb/devices/2-3/bConfigurationValue -bash: echo: write error: Invalid argument - snip - The syslog-lines: Oct 24 18:09:11 leeloo kernel: [930673.742358] usb 2-3: new SuperSpeed USB device number 13 using xhci_hcd Oct 24 18:09:21 leeloo kernel: [930683.743447] usb 2-3: New USB device found, idVendor=174c, idProduct=5106 Oct 24 18:09:21 leeloo kernel: [930683.743452] usb 2-3: New USB device strings: Mfr=2, Product=3, SerialNumber=1 Oct 24 18:09:21 leeloo kernel: [930683.743454] usb 2-3: Product: AS2105 Oct 24 18:09:21 leeloo kernel: [930683.743456] usb 2-3: Manufacturer: ASMedia Oct 24 18:09:26 leeloo kernel: [930688.738595] usb 2-3: can't set config #1, error -110 First-Try: Oct 24 18:09:51 leeloo kernel: [930713.543126] xhci_hcd 0000:00:14.0: Trying to add endpoint 0x81 without dropping it. Second-Try: Oct 24 18:12:21 leeloo kernel: [930864.012372] xhci_hcd 0000:00:14.0: Trying to add endpoint 0x81 without dropping it. Bis denn -- Real Programmers consider "what you see is what you get" to be just as bad a concept in Text Editors as it is in women. No, the Real Programmer wants a "you asked for it, you got it" text editor -- complicated, cryptic, powerful, unforgiving, dangerous. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html