On Jan 26 2004, Alan Stern wrote:
> On Fri, 23 Jan 2004, Rogério Brito wrote:
> > 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. :-)
> 

> That's good news.  Here's another patch to try.  It's almost the same
> as the previous one; the only difference is that it turns on power to
> all the ports of the internal hub at the same time.  That's how the
> regular Linux driver works.  I want to see what is the smallest change
> needed for your device to be okay.

Ok. This time, for lack of time (but for anxiously awaiting to sending
you a feedback), I only tested via warm boots. The logs are listed
below.

[Problems with pxaux mouse under X]
> > 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.
> 
> I doubt very much that there is any relation unless you're using a USB
> mouse.  But if you were it wouldn't be psaux, would it?  The mouse
> trouble almost certainly has nothing to do with the patch.

Even if my systems use /dev/input/mouse? I'm using Debian testing at
home. I thought that it might have, but I will investigate further after
I take a good night of sleep.

Thank you very much, Rogério.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    (...) Beginning of logs ommitted
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
(...)
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
hub 1-0:1.0: standalone hub
hub 1-0:1.0: ganged power switching
hub 1-0:1.0: global over-current protection
hub 1-0:1.0: Port indicators are not supported
hub 1-0:1.0: power on to power good time: 2ms
hub 1-0:1.0: hub controller current requirement: 0mA
hub 1-0:1.0: local power source is good
hub 1-0:1.0: no over-current condition exists
hub 1-0:1.0: enabling power on all ports
hub 1-0:1.0: port 1 power on: 0
hub 1-0:1.0: port 2 power on: 0
(...)
uhci_hcd 0000:00:04.3: UHCI Host Controller
uhci_hcd 0000:00:04.3: irq 9, io base 0000d000
uhci_hcd 0000:00:04.3: new USB bus registered, assigned bus number 2
drivers/usb/host/uhci-hcd.c: detected 2 ports
uhci_hcd 0000:00:04.3: root hub device address 1
usb usb2: new device strings: Mfr=3, Product=2, SerialNumber=1
drivers/usb/core/message.c: USB device number 1 default language ID 0x409
usb usb2: Product: UHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.1-5 uhci_hcd
usb usb2: SerialNumber: 0000:00:04.3
drivers/usb/core/usb.c: usb_hotplug
usb usb2: registering 2-0:1.0 (config #1, interface 0)
drivers/usb/core/usb.c: usb_hotplug
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 2-0:1.0: port 2 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 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
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
drivers/usb/host/uhci-hcd.c: d400: suspend_hc

     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 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
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: 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
SCSI subsystem initialized

   Here I tried to initialize usb-storage and it got through, which
   made me happy once again. I could also mount the device, which made
   me doubly happy. Thanks.

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

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  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