On 24.10.2012 07:45, Greg KH wrote: > On Wed, Oct 24, 2012 at 10:12:47AM -0400, 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). > > And it can be increased with the delay_use module parameter to the > usb_storage driver. Matthias, try increasing that value to something > much larger (20?) and see if that works for you. First i tried the suggestion by Alan, which didn't work (for me). This also didn't work (for me). I switched off the HDD in between these 2 tests. leeloo:~ # rmmod usb_storage leeloo:~ # modprobe usb_storage delay_use=20 And the syslog-lines: Oct 24 18:13:17 leeloo kernel: [930919.373921] usbcore: deregistering interface driver usb-storage Oct 24 18:13:30 leeloo kernel: [930932.962571] Initializing USB Mass Storage driver... Oct 24 18:13:30 leeloo kernel: [930932.962676] usbcore: registered new interface driver usb-storage Oct 24 18:13:30 leeloo kernel: [930932.962676] USB Mass Storage support registered. Oct 24 18:13:39 leeloo kernel: [930941.954879] usb 2-3: new SuperSpeed USB device number 15 using xhci_hcd Oct 24 18:13:49 leeloo kernel: [930951.956044] usb 2-3: New USB device found, idVendor=174c, idProduct=5106 Oct 24 18:13:49 leeloo kernel: [930951.956048] usb 2-3: New USB device strings: Mfr=2, Product=3, SerialNumber=1 Oct 24 18:13:49 leeloo kernel: [930951.956051] usb 2-3: Product: AS2105 Oct 24 18:13:49 leeloo kernel: [930951.956053] usb 2-3: Manufacturer: ASMedia Oct 24 18:13:54 leeloo kernel: [930956.951021] usb 2-3: can't set config #1, error -110 That delay_use has an effect can be seen when i dis/re-connect the cable: Oct 24 18:21:06 leeloo kernel: [931388.451468] usb 2-3: USB disconnect, device number 15 Oct 24 18:21:10 leeloo kernel: [931392.587389] usb 1-3: new high-speed USB device number 4 using xhci_hcd Oct 24 18:21:10 leeloo kernel: [931392.609296] usb 1-3: New USB device found, idVendor=174c, idProduct=5106 Oct 24 18:21:10 leeloo kernel: [931392.609301] usb 1-3: New USB device strings: Mfr=2, Product=3, SerialNumber=1 Oct 24 18:21:10 leeloo kernel: [931392.609303] usb 1-3: Product: AS2105 Oct 24 18:21:10 leeloo kernel: [931392.609306] usb 1-3: Manufacturer: ASMedia Oct 24 18:21:10 leeloo kernel: [931392.609308] usb 1-3: SerialNumber: xxxxxxxxxxx Oct 24 18:21:10 leeloo kernel: [931392.609477] usb 1-3: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes Oct 24 18:21:10 leeloo kernel: [931392.609479] usb 1-3: ep 0x2 - rounding interval to 32768 microframes, ep desc says 0 microframes Oct 24 18:21:10 leeloo kernel: [931392.609784] scsi38 : usb-storage 1-3:1.0 Here is the 20 second delay: Oct 24 18:21:30 leeloo kernel: [931412.665955] scsi 38:0:0:0: Direct-Access WDC WD30 EZRX-00MMMB0 80.0 PQ: 0 ANSI: 5 Oct 24 18:21:30 leeloo kernel: [931412.666168] sd 38:0:0:0: Attached scsi generic sg3 type 0 Oct 24 18:21:30 leeloo kernel: [931412.666328] sd 38:0:0:0: [sdd] Very big device. Trying to use READ CAPACITY(16). Oct 24 18:21:30 leeloo kernel: [931412.666492] sd 38:0:0:0: [sdd] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB) Oct 24 18:21:30 leeloo kernel: [931412.666791] sd 38:0:0:0: [sdd] Write Protect is off Oct 24 18:21:30 leeloo kernel: [931412.666802] sd 38:0:0:0: [sdd] Mode Sense: 23 00 00 00 Oct 24 18:21:30 leeloo kernel: [931412.667157] sd 38:0:0:0: [sdd] No Caching mode page present Oct 24 18:21:30 leeloo kernel: [931412.667159] sd 38:0:0:0: [sdd] Assuming drive cache: write through Oct 24 18:21:30 leeloo kernel: [931412.667427] sd 38:0:0:0: [sdd] Very big device. Trying to use READ CAPACITY(16). Oct 24 18:21:30 leeloo kernel: [931412.668244] sd 38:0:0:0: [sdd] No Caching mode page present Oct 24 18:21:30 leeloo kernel: [931412.668248] sd 38:0:0:0: [sdd] Assuming drive cache: write through Oct 24 18:21:31 leeloo kernel: [931413.095380] sdd: sdd1 Oct 24 18:21:31 leeloo kernel: [931413.095832] sd 38:0:0:0: [sdd] Very big device. Trying to use READ CAPACITY(16). Oct 24 18:21:31 leeloo kernel: [931413.096924] sd 38:0:0:0: [sdd] No Caching mode page present Oct 24 18:21:31 leeloo kernel: [931413.096929] sd 38:0:0:0: [sdd] Assuming drive cache: write through Oct 24 18:21:31 leeloo kernel: [931413.096932] sd 38:0:0:0: [sdd] Attached SCSI disk 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