On Jan 23 2004, Alan Stern wrote:
> Here's another patch.  This one makes the driver behave even more like
> Windows, because it doesn't do the status polling during the debounce
> period.  In fact, it doesn't do status polling at all for your internal
> hub, which makes it unsuited for general use -- it won't even be able to
> tell when you unplug the drive.  But if it gets your drive working, I'll
> worry about that part later.

Yes! It seems that this time you hit the nail in the head. I booted my
system (7 boots in a row, both cold and warm boots) with the new patch
applied and, for each boot, I plugged the drive and it was promptly
recognized after I loaded uhci-hcd and usb-storage.

I think that the probability of this being just sheer luck is so low,
given the probability of success of it working that I can say that now I
think that it is working for good with your newest patch. :-)

> By the way, does your drive require an external power source?  That
> is, do you have to plug it into the wall power before you can use it?
> The Windows trace says that it uses external power, but the Linux log
> says that the local power source is inactive.  I don't really
> understand that.

The Sindows logs are wrong here, because the drive doesn't have an
external power source. It is just a "keychain" USB Drive that gets its
power from the USB bus.

But the patch had a side effect, which I have not yet identified
completely. It seems that if I plug the drive, without having X started,
and then start X, my psaux mouse doesn't work.

It also seems that a cold boot with starting X and *then* loading the
drive cures the problem, but I am not sure of what I am saying here.

The logs of one of the successful sessions are here:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
(...)
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 100, change 3, 12 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 100
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 drive.
   
drivers/usb/host/uhci-hcd.c: d400: wakeup_hc
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 1, 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 0
hub 1-0:1.0: port_status= 0, port 2 status 101 change 0
hub 1-0:1.0: port_status= 0, port 2 status 101 change 0
hub 1-0:1.0: port_status= 0, port 2 status 101 change 0
hub 1-0:1.0: port_status= 0, port 2 status 101 change 0
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: skipping status urb for compound hub
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: 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

   Here is when I loaded usb-storage and was happy to see it work. :-)

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


Thank you very much, 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

Reply via email to