On Jan 22 2004, Alan Stern wrote: > I'm not sure if it's significant either, but I agree that starting from a > cold boot is a good idea.
Ok. I'm now adopting the idea of always cold booting my system. > Also, don't worry for now about what happens after you unplug the drive. > I'm more interested in the part where you first plug it in. Ok. I just plugged and replugged it in the hope that it would be identified after replugging. > Here's another patch to try. Unlike the others, this one includes an > important change. It doesn't start the periodic status request going > until _after_ the ports have been powered on. This might be crucial; I > noticed in your Windows packet trace that this is how the Windows driver > works. It also fits in with the intermittent nature of your problem -- it > might depend on details of the timing interaction between the status > request and the power-on requests. Well, I tried the patch. The first time I tried it, it worked and I was quite happy. I then unplugged the drive and then I inserted it a second time, to see if it behaved the same way it did in my old notebook (which you may remember that the drive always work there). It unfortunately didn't, which led me to think that it was only one of those "statistical noises". Anyway, I cold booted my system and tried the same process again and, this time, it didn't work. Here is the log of the failure and below it are the differences between it and the success case. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - drivers/usb/core/usb.c: registered new driver usbfs drivers/usb/core/usb.c: registered new driver hub (...) hub 2-0:1.0: usb_probe_interface hub 2-0:1.0: usb_probe_interface - got id hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected hub 2-0:1.0: standalone hub hub 2-0:1.0: ganged power switching hub 2-0:1.0: global over-current protection hub 2-0:1.0: Port indicators are not supported hub 2-0:1.0: power on to power good time: 2ms hub 2-0:1.0: hub controller current requirement: 0mA hub 2-0:1.0: local power source is good hub 2-0:1.0: no over-current condition exists hub 2-0:1.0: enabling power on all ports hub 2-0:1.0: port 1 power on: 0 hub 1-0:1.0: initial port 1 status: ret = 0 hub 1-0:1.0: port 1, status 300, change 3, 1.5 Mb/s hub 1-0:1.0: clear C_CONNECTION1 = 0 hub 1-0:1.0: initial port 2 status: ret = 0 hub 1-0:1.0: port 2, status 300, change 3, 1.5 Mb/s hub 1-0:1.0: clear C_CONNECTION1 = 0 hub 1-0:1.0: initial port 1 status: ret = 0 hub 1-0:1.0: port 1 enable change, status 300 hub 1-0:1.0: initial port 2 status: ret = 0 hub 1-0:1.0: port 2 enable change, status 300 hub 2-0:1.0: port 2 power on: 0 drivers/usb/host/uhci-hcd.c: d400: suspend_hc hub 2-0:1.0: initial port 1 status: ret = 0 hub 2-0:1.0: port 1, status 300, change 3, 1.5 Mb/s hub 2-0:1.0: clear C_CONNECTION1 = 0 hub 2-0:1.0: initial port 2 status: ret = 0 hub 2-0:1.0: port 2, status 101, change 3, 12 Mb/s hub 2-0:1.0: clear C_CONNECTION1 = 0 hub 2-0:1.0: port_status= 0, port 2 status 101 change 2 hub 2-0:1.0: port_status= 0, port 2 status 101 change 2 hub 2-0:1.0: port_status= 0, port 2 status 101 change 2 hub 2-0:1.0: port_status= 0, port 2 status 101 change 2 hub 2-0:1.0: port_status= 0, port 2 status 101 change 2 hub 2-0:1.0: debounce: port 2: delay 100ms stable 4 status 0x101 hub 2-0:1.0: port reset = 0 hub 2-0:1.0: wait_reset 0, port 2, status 103, change 0 hub 2-0:1.0: new USB device on port 2, assigned address 2 usb 2-2: new device strings: Mfr=1, Product=2, SerialNumber=0 drivers/usb/core/message.c: USB device number 2 default language ID 0x409 usb 2-2: Product: Generic USB Hub usb 2-2: Manufacturer: ALCOR drivers/usb/core/usb.c: usb_hotplug usb 2-2: registering 2-2:1.0 (config #1, interface 0) drivers/usb/core/usb.c: usb_hotplug hub 2-2:1.0: usb_probe_interface hub 2-2:1.0: usb_probe_interface - got id hub 2-2:1.0: USB hub found hub 2-2:1.0: 4 ports detected hub 2-2:1.0: standalone hub hub 2-2:1.0: ganged power switching hub 2-2:1.0: global over-current protection hub 2-2:1.0: Port indicators are not supported hub 2-2:1.0: power on to power good time: 44ms hub 2-2:1.0: hub controller current requirement: 100mA hub 2-2:1.0: local power source is good hub 2-2:1.0: no over-current condition exists hub 2-2:1.0: enabling power on all ports hub 2-2:1.0: port 1 power on: 0 hub 2-2:1.0: port 2 power on: 0 hub 2-2:1.0: port 3 power on: 0 hub 2-2:1.0: port 4 power on: 0 hub 2-0:1.0: initial port 1 status: ret = 0 hub 2-0:1.0: port 1 enable change, status 300 hub 2-0:1.0: initial port 2 status: ret = 0 Here I plugged the USB drive in my system. hub 1-0:1.0: initial port 1 status: ret = 0 hub 1-0:1.0: initial port 2 status: ret = 0 hub 1-0:1.0: port 2, status 101, change 3, 12 Mb/s hub 1-0:1.0: clear C_CONNECTION1 = 0 hub 1-0:1.0: port_status= 0, port 2 status 101 change 2 drivers/usb/host/uhci-hcd.c: d400: wakeup_hc hub 1-0:1.0: port_status= 0, port 2 status 101 change 2 hub 1-0:1.0: port_status= 0, port 2 status 101 change 2 hub 1-0:1.0: port_status= 0, port 2 status 101 change 2 hub 1-0:1.0: port_status= 0, port 2 status 101 change 2 hub 1-0:1.0: debounce: port 2: delay 100ms stable 4 status 0x101 hub 1-0:1.0: port reset = 0 hub 1-0:1.0: wait_reset 0, port 2, status 103, change 0 hub 1-0:1.0: new USB device on port 2, assigned address 2 usb 1-2: new device strings: Mfr=1, Product=3, SerialNumber=0 drivers/usb/core/message.c: USB device number 2 default language ID 0x409 usb 1-2: Product: USB Embedded Hub usb 1-2: Manufacturer: Leading Driver Co.,LTD. drivers/usb/core/usb.c: usb_hotplug usb 1-2: registering 1-2:1.0 (config #1, interface 0) drivers/usb/core/usb.c: usb_hotplug hub 1-2:1.0: usb_probe_interface hub 1-2:1.0: usb_probe_interface - got id hub 1-2:1.0: USB hub found hub 1-2:1.0: 2 ports detected hub 1-2:1.0: compound device; port removable status: FF hub 1-2:1.0: individual port power switching hub 1-2:1.0: individual port over-current protection hub 1-2:1.0: Port indicators are not supported hub 1-2:1.0: power on to power good time: 100ms hub 1-2:1.0: hub controller current requirement: 100mA hub 1-2:1.0: local power source is lost (inactive) hub 1-2:1.0: no over-current condition exists hub 1-2:1.0: enabling power on all ports hub 1-2:1.0: port 1 power on: 0 hub 1-2:1.0: port 2 power on: 0 hub 1-2:1.0: initial port 1 status: ret = 0 hub 1-2:1.0: port 1, status 101, change 1, 12 Mb/s hub 1-2:1.0: clear C_CONNECTION1 = 0 hub 1-2:1.0: port_status= 0, port 1 status 101 change 0 hub 1-2:1.0: port_status= 0, port 1 status 101 change 0 hub 1-2:1.0: port_status= 0, port 1 status 101 change 0 hub 1-2:1.0: port_status= 0, port 1 status 101 change 0 hub 1-2:1.0: transfer --> -75 usb 1-2: control timeout on ep0in Even after seeing the message above, I tried to load usb-storage, just to see what would happen. Well, it obviously didn't work. SCSI subsystem initialized Initializing USB Mass Storage driver... drivers/usb/core/usb.c: registered new driver usb-storage USB Mass Storage support registered. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Here is the diff between the two cases: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --- dmesg-failure.txt~ 2004-01-23 02:01:25.000000000 -0200 +++ dmesg-success.txt 2004-01-23 02:01:31.000000000 -0200 @@ -161,9 +161,60 @@ hub 1-2:1.0: port_status= 0, port 1 status 101 change 0 hub 1-2:1.0: port_status= 0, port 1 status 101 change 0 hub 1-2:1.0: port_status= 0, port 1 status 101 change 0 -hub 1-2:1.0: transfer --> -75 -usb 1-2: control timeout on ep0in +hub 1-2:1.0: port_status= 0, port 1 status 101 change 0 +hub 1-2:1.0: debounce: port 1: delay 100ms stable 4 status 0x101 +hub 1-2:1.0: port reset = 0 +hub 1-2:1.0: wait_reset 0, port 1, status 103, change 10 +hub 1-2:1.0: new USB device on port 1, assigned address 3 +usb 1-2.1: new device strings: Mfr=1, Product=4, SerialNumber=0 +drivers/usb/core/message.c: USB device number 3 default language ID 0x409 +usb 1-2.1: Product: USB Mass Storage Device +usb 1-2.1: Manufacturer: Leading Driver Co.,LTD. +drivers/usb/core/usb.c: usb_hotplug +usb 1-2.1: registering 1-2.1:1.0 (config #1, interface 0) +drivers/usb/core/usb.c: usb_hotplug +hub 1-2:1.0: initial port 2 status: ret = 0 +hub 1-2:1.0: port 2, status 101, change 1, 12 Mb/s +hub 1-2:1.0: clear C_CONNECTION1 = 0 +hub 1-2:1.0: port_status= 0, port 2 status 101 change 0 +hub 1-2:1.0: port_status= 0, port 2 status 101 change 0 +hub 1-2:1.0: port_status= 0, port 2 status 101 change 0 +hub 1-2:1.0: port_status= 0, port 2 status 101 change 0 +hub 1-2:1.0: port_status= 0, port 2 status 101 change 0 +hub 1-2:1.0: debounce: port 2: delay 100ms stable 4 status 0x101 +hub 1-2:1.0: port reset = 0 +hub 1-2:1.0: wait_reset 0, port 2, status 103, change 10 +hub 1-2:1.0: new USB device on port 2, assigned address 4 +usb 1-2.2: new device strings: Mfr=1, Product=5, SerialNumber=0 +drivers/usb/core/message.c: USB device number 4 default language ID 0x409 +usb 1-2.2: Product: USB Security Device +usb 1-2.2: Manufacturer: Leading Driver Co.,LTD. +drivers/usb/core/usb.c: usb_hotplug +usb 1-2.2: registering 1-2.2:1.0 (config #1, interface 0) +drivers/usb/core/usb.c: usb_hotplug +hub 1-2:1.0: initial port 1 status: ret = 0 +hub 1-2:1.0: initial port 2 status: ret = 0 SCSI subsystem initialized Initializing USB Mass Storage driver... +usb-storage 1-2.1:1.0: usb_probe_interface +usb-storage 1-2.1:1.0: usb_probe_interface - got id +scsi0 : SCSI emulation for USB Mass Storage devices + Vendor: Prolific Model: USB Flash Disk Rev: 1.00 + Type: Direct-Access ANSI SCSI revision: 02 +WARNING: USB Mass Storage data integrity not assured +USB Mass Storage device found at 3 drivers/usb/core/usb.c: registered new driver usb-storage USB Mass Storage support registered. +request_module: failed /sbin/modprobe -- block-major-8-1. error = 256 +SCSI device sda: 256000 512-byte hdwr sectors (131 MB) +sda: assuming Write Enabled +sda: assuming drive cache: write through +SCSI error: host 0 id 0 lun 0 return code = 8000002 + Sense class 7, sense error 0, extended sense 0 + sda: sda1 +SCSI error: host 0 id 0 lun 0 return code = 8000002 + Sense class 7, sense error 0, extended sense 0 +Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 +SCSI error: host 0 id 0 lun 0 return code = 8000002 + Sense class 7, sense error 0, extended sense 0 +Unable to load NLS charset cp437 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - BTW, I don't have Windows 2000 installed anymore (I needed the space for some data), but now I can install it again and if you want any logs from Windows 2000, I can surely install it again, if you wish to see another batch of logs from Windows 2000. Thanks, Rogério. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rogério Brito - [EMAIL PROTECTED] - http://www.ime.usp.br/~rbrito =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel