Re: cpia & usb problems

From: Johannes Erdfelt (jerdfelt@sventech.com)
Date: Wed Feb 16 2000 - 15:54:07 EST


On Thu, Feb 17, 2000, Chris Wedgwood <cw@f00f.org> wrote:
> I decided to have another play with USB and a Creative Webcam II
> (cpia based) -- is the past I've never had any success, only oopsen.
>
> With pre-2.3.46-3 I don't get oopsen anymore, but I do get a
> complaint that the device won't accept a new address -- is this a bug
> of a flaw in the camera or something competely different?
>
> I have tried with both uhci drivers; uhci.o:
>
> usb.c: registered new driver usbdevfs
> usb.c: registered new driver hub
> usb.c: registered new driver cpia
> uhci.c: detected 2 ports
> usb.c: new USB bus registered, assigned bus number 1
> usb.c: USB new device connect, assigned device number 1
> usb.c: kmalloc IF c777dd80, numif 1
> usb.c: new device strings: Mfr=0, Product=0, SerialNumber=0
> hub.c: USB hub found
> hub.c: 2 ports detected
> hub.c: ganged power switching
> hub.c: standalone hub
> hub.c: global over-current protection
> hub.c: power on to power good time: 2ms
> hub.c: hub controller current requirement: 0mA
> hub.c: port 1 is removable
> hub.c: port 2 is removable
> hub.c: local power source is good
> hub.c: no over-current condition exists
> hub.c: enabling power on all ports
> usb.c: usb-bandwidth-alloc: was: 0, new: 17, bustime = 17 us, Pipe allowed: yes
> usb.c: bw_alloc bumped to 17 for 1 requesters
> usb.c: hub driver claimed interface c777dd80

[ root hub desciptor dump deleted ]

> uhci.c: root-hub INT complete: port1: 80 port2: 93 data: 4
> hub.c: port 2 connection change
> hub.c: portstatus 101, change 1, High Speed
> hub.c: portstatus 103, change 0, High Speed
> usb.c: USB new device connect, assigned device number 2
> uhci.c: uhci_result_control() failed with status 440000
> Depth traverse
> td 0: [c73aa0e0]
> 00000001 e0 IOC Stalled CRC/Timeo Length=7ff MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
> uhci.c: uhci_result_control() failed with status 440000
> Depth traverse
> td 0: [c73aa020]
> 00000001 e0 IOC Stalled CRC/Timeo Length=7ff MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
> uhci.c: uhci_result_control() failed with status 440000
> Depth traverse
> td 0: [c73aa0e0]
> 00000001 e0 IOC Stalled CRC/Timeo Length=7ff MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
> uhci.c: uhci_result_control() failed with status 440000
> Depth traverse
> td 0: [c73aa020]
> 00000001 e0 IOC Stalled CRC/Timeo Length=7ff MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
> uhci.c: uhci_result_control() failed with status 440000
> Depth traverse
> td 0: [c73aa0e0]
> 00000001 e0 IOC Stalled CRC/Timeo Length=7ff MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
> usb.c: USB device not responding, giving up (error=-110)
> hub.c: hub: disabling port 2
>
>
> and usb-uhci.o:
>
>
> usb-uhci.c: version v1.184 time 08:30:51 Feb 17 2000
> usb.c: USB disconnect on device 1
> usb.c: bw_alloc reduced to 0 for 0 requesters
> usb.c: USB disconnect on device -1
> usb.c: USB bus 1 deregistered
> kmem_create: Dup name - uhci_desc
> kmem_create: Dup name - urb_priv
> usb-uhci.c: version v1.184 time 08:30:51 Feb 17 2000
> usb-uhci.c: Detected 2 ports
> usb.c: new USB bus registered, assigned bus number 1
> usb.c: USB new device connect, assigned device number 1
> usb.c: kmalloc IF c777dd40, numif 1
> usb.c: new device strings: Mfr=0, Product=0, SerialNumber=0
> hub.c: USB hub found
> hub.c: 2 ports detected
> hub.c: ganged power switching
> hub.c: standalone hub
> hub.c: global over-current protection
> hub.c: power on to power good time: 2ms
> hub.c: hub controller current requirement: 0mA
> hub.c: port 1 is removable
> hub.c: port 2 is removable
> hub.c: local power source is good
> hub.c: no over-current condition exists
> hub.c: enabling power on all ports
> usb.c: usb-bandwidth-alloc: was: 0, new: 17, bustime = 17 us, Pipe allowed: yes
> usb.c: bw_alloc bumped to 17 for 1 requesters
> usb.c: hub driver claimed interface c777dd40

[ root hub desciptor dump deleted ]

> hub.c: port 2 connection change
> hub.c: portstatus 101, change 1, High Speed
> hub.c: portstatus 103, change 0, High Speed
> usb.c: USB new device connect, assigned device number 2
> usb-uhci.c: interrupt, status 2, frame# 1048
> usb-uhci-debug.h: uhci_show_td c7121820 (07121820)
> usb-uhci-debug.h: MaxLen=07 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=0777db80)
> usb-uhci-debug.h: Len=07 e0 SPD Stalled CRC/Timeo
> usb-uhci-debug.h: Breadth first, link points to TD @ 07121860
> usb.c: USB device not accepting new address (error=-110)
> hub.c: hub: disabling port 2
> usb.c: USB disconnect on device 1
> usb.c: bw_alloc reduced to 0 for 0 requesters
> usb.c: USB disconnect on device -1
> usb.c: USB bus 1 deregistered
> usb.c: deregistering driver cpia
> usb.c: deregistering driver usbdevfs
> hub.c: usb_hub_thread exiting
> usb.c: deregistering driver hub

Both drivers failed, but in 2 different places. It's still not good.

Looks like the Host Controller is working correctly and raising
interrupts fine, but the packets aren't being sent from the host
controller to the device.

Does any device work or is this the only device you've tested with?

Has any kernel detected the device?

Any hubs in between?

JE

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:16 EST