Hi!!

Currently im playing with the ds2490 USB-to-OneWire Bridge from Dallas
Semiconductor and built an interface circuit. Two of this devices
are working on different machines with kernel versions from 2.6.18
up to 2.6.21 perfectly.

Now one of the intended target machines (HP Omnibook xt1000s) causes
Problems. It happens with the Kernelspace 1-Wire device drivers as well
as with the userspace 1-Wire project owfs using libusb. Therefore i
suppose it's more related to the core usb-system than to one of these
projects. But i'm certainly not familiar with all this usb stuff.
The error can be observed with a self compiled 2.6.21 kernel
(which generated the following debuging output). But it's the same
with the 2.6.18 kernel that come's with debian-testing. 

With usb debuging activated the dmesg output looks like this:

uhci_hcd 0000:00:11.3: reserve dev 2 ep81-INT, period 1, phase 0, 36 us
uhci_hcd 0000:00:11.3: release dev 2 ep81-INT, period 1, phase 0, 36 us
uhci_hcd 0000:00:11.3: reserve dev 2 ep81-INT, period 1, phase 0, 36 us
uhci_hcd 0000:00:11.3: release dev 2 ep81-INT, period 1, phase 0, 36 us
uhci_hcd 0000:00:11.3: reserve dev 2 ep81-INT, period 1, phase 0, 36 us
uhci_hcd 0000:00:11.3: release dev 2 ep81-INT, period 1, phase 0, 36 us
usb 2-1: uhci_result_common: failed with status 500000
usb 2-1: owfs timed out on ep0out len=-8/0
usb 2-1: owfs timed out on ep0out len=-8/0
usb 2-1: usbfs: USBDEVFS_CONTROL failed cmd owfs rqt 64 rq 1 len 0 ret -110
usb 2-1: owfs timed out on ep0out len=-8/0
usb 2-1: usbfs: USBDEVFS_CONTROL failed cmd owfs rqt 64 rq 1 len 0 ret -110
usb 2-1: owfs timed out on ep0out len=-8/0
usb 2-1: usbfs: USBDEVFS_CONTROL failed cmd owfs rqt 64 rq 1 len 0 ret -110
usb 2-1: owfs timed out on ep0out len=-8/0
usb 2-1: usbfs: USBDEVFS_CONTROL failed cmd owfs rqt 64 rq 1 len 0 ret -110
usb 2-1: owfs timed out on ep0out len=-8/0
usb 2-1: usbfs: USBDEVFS_CONTROL failed cmd owfs rqt 64 rq 1 len 0 ret -110

After a few successful interactions on the bus, the communication fails
obviously. To recover from this it's not enough to replug the device.
If i don't, it looks like this:

usb usb2: wakeup_rh (auto-start)
hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0002
uhci_hcd 0000:00:11.3: port 1 portsc 0093,00
hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
usb 2-1: new full speed USB device using uhci_hcd and address 7
usb 2-1: khubd timed out on ep0in len=-8/64
usb 2-1: khubd timed out on ep0in len=-8/64
usb 2-1: khubd timed out on ep0in len=-8/64
usb 2-1: device descriptor read/64, error -110
usb 2-1: khubd timed out on ep0in len=-8/64
usb 2-1: khubd timed out on ep0in len=-8/64
usb 2-1: khubd timed out on ep0in len=-8/64
usb 2-1: device descriptor read/64, error -110
usb 2-1: new full speed USB device using uhci_hcd and address 8
usb 2-1: khubd timed out on ep0in len=-8/64
usb 2-1: khubd timed out on ep0in len=-8/64



After reloading uhci_hcd it looks like this:



USB Universal Host Controller Interface driver v3.0
ACPI: PCI Interrupt 0000:00:11.2[D] -> Link [LNKD] -> GSI 10 (level, low) -> 
IRQ 10
uhci_hcd 0000:00:11.2: UHCI Host Controller
drivers/usb/core/inode.c: creating file 'devices'
drivers/usb/core/inode.c: creating file '001'
uhci_hcd 0000:00:11.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:11.2: detected 2 ports
uhci_hcd 0000:00:11.2: uhci_check_and_reset_hc: cmd = 0x0000
uhci_hcd 0000:00:11.2: Performing full reset
uhci_hcd 0000:00:11.2: irq 10, io base 0x00001200
usb usb1: default language 0x0409
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: UHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.21kws uhci_hcd
usb usb1: SerialNumber: 0000:00:11.2
usb usb1: uevent
usb usb1: usb_probe_device
usb usb1: configuration #1 chosen from 1 choice
usb usb1: adding 1-0:1.0 (config #1, interface 0)
usb 1-0:1.0: uevent
hub 1-0:1.0: usb_probe_interface
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: no power switching (usb 1.0)
hub 1-0:1.0: individual port over-current protection
hub 1-0:1.0: power on to power good time: 2ms
hub 1-0:1.0: local power source is good
hub 1-0:1.0: trying to enable port power on non-switchable hub
drivers/usb/core/inode.c: creating file '001'
ACPI: PCI Interrupt 0000:00:11.3[D] -> Link [LNKD] -> GSI 10 (level, low) -> 
IRQ 10
uhci_hcd 0000:00:11.3: UHCI Host Controller
drivers/usb/core/inode.c: creating file '002'
uhci_hcd 0000:00:11.3: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:11.3: detected 2 ports
uhci_hcd 0000:00:11.3: uhci_check_and_reset_hc: cmd = 0x0000
uhci_hcd 0000:00:11.3: Performing full reset
uhci_hcd 0000:00:11.3: irq 10, io base 0x00001300
usb usb2: default language 0x0409
usb usb2: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: UHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.21kws uhci_hcd
usb usb2: SerialNumber: 0000:00:11.3
usb usb2: uevent
usb usb2: usb_probe_device
usb usb2: configuration #1 chosen from 1 choice
usb usb2: adding 2-0:1.0 (config #1, interface 0)
usb 2-0:1.0: uevent
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: no power switching (usb 1.0)
hub 2-0:1.0: individual port over-current protection
hub 2-0:1.0: power on to power good time: 2ms
hub 2-0:1.0: local power source is good
hub 2-0:1.0: trying to enable port power on non-switchable hub
hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0006
uhci_hcd 0000:00:11.2: port 1 portsc 018a,00
hub 1-0:1.0: port 1, status 0300, change 0003, 1.5 Mb/s
drivers/usb/core/inode.c: creating file '001'
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x300
uhci_hcd 0000:00:11.2: port 2 portsc 008a,00
hub 1-0:1.0: port 2, status 0100, change 0003, 12 Mb/s
hub 1-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x100
hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0006
uhci_hcd 0000:00:11.3: port 1 portsc 008a,00
hub 2-0:1.0: port 1, status 0100, change 0003, 12 Mb/s
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
uhci_hcd 0000:00:11.3: port 2 portsc 018a,00
hub 2-0:1.0: port 2, status 0300, change 0003, 1.5 Mb/s
hub 2-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x300
hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0000
usb usb1: suspend_rh (auto-stop)
usb usb2: suspend_rh (auto-stop)
usb usb2: wakeup_rh (auto-start)
hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0002
uhci_hcd 0000:00:11.3: port 1 portsc 0093,00
hub 2-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
hub 2-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: ep0 maxpacket = 8
usb 2-1: new device strings: Mfr=0, Product=0, SerialNumber=0
usb 2-1: uevent
usb 2-1: usb_probe_device
usb 2-1: configuration #1 chosen from 1 choice
usb 2-1: adding 2-1:1.0 (config #1, interface 0)
usb 2-1:1.0: uevent
drivers/usb/core/inode.c: creating file '002'
hub 2-0:1.0: state 7 ports 2 chg 0000 evt 0002


and everything can be repeated from start.


I must mention that several other USB devices are working
flawlessly on this notebook as well as this 1-wire bridge device
is working perfectly on several other computers. It's apparently
only this combination which makes problems.

Even more curious:
As soon as the bridge-device is connected via a USB-hub
(without external power supply) it works too!
Of course this would be a work around but it's quite
unsatisfying.

AND:
The failure can be reproduced with another of these bridge
devices which is using the same chipset (ds2490) but another
surrounding circuit design. So it's unlikely that it's an
electrical problem.

I'm a bit helpless at the moment.


Thank you in advance,
kind regards,
Klaus


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to