On Sat, Apr 21, 2007 at 10:59:18AM -0400, Alan Stern wrote:
> On Sat, 21 Apr 2007, Hamish Moffatt wrote:
> > > > 3. udev->speed is actually an unknown value (not _LOW, _FULL or _HIGH)
> > > > for my device apparently. I haven't researched this yet; is there an
> > > > obvious reason?
> > > 
> > > What on earth are you talking about?  It must be USB_SPEED_FULL.  Have 
> > > you 
> > > tried printing out the value to see?
> > 
> > usbtest does this (in usbtest_probe()) and it's reporting unknown.
> > Dave's post suggests I am neglecting to set this to full correctly in my
> > gadget. Yet to look into this.
> 
> Now I'm getting confused.  Your driver runs on the device and usbtest 
> runs on the host.  How can the host get confused about the device's speed, 
> and what could your driver possibly do to confuse it?

I don't know? All I know is that usbtest.c reports that the device speed
is unknown, in the probe routine. This shows up as follows when I run
the testusb program;

unknown speed   /proc/bus/usb/002/013
/proc/bus/usb/002/013 test 0,    0.000003 secs
/proc/bus/usb/002/013 test 1,    0.002860 secs
[...]

> Furthermore, there's no way for usbcore on the host to leave the speed set 
> to UNKNOWN.  Look at the code in hub_port_wait_reset() in 
> drivers/usb/core/hub.c.

It's only usbtest that's reporting unknown speed. Other messages from
the kernel seem to be as expected.  Here's what I get on the host with 
CONFIG_USB_DEBUG;

Apr 21 17:15:18 snake kernel: hub 3-0:1.0: state 7 ports 6 chg 0000 evt 0040
Apr 21 17:15:18 snake kernel: ehci_hcd 0000:00:03.3: GetStatus port 6 status 
001803 POWER sig=j CSC CONNECT
Apr 21 17:15:18 snake kernel: hub 3-0:1.0: port 6, status 0501, change 0001, 
480 Mb/s
Apr 21 17:15:18 snake kernel: hub 3-0:1.0: debounce: port 6: total 100ms stable 
100ms status 0x501
Apr 21 17:15:18 snake kernel: ehci_hcd 0000:00:03.3: port 6 full speed --> 
companion
Apr 21 17:15:18 snake kernel: ehci_hcd 0000:00:03.3: GetStatus port 6 status 
003801 POWER OWNER sig=j CONNECT
Apr 21 17:15:18 snake kernel: hub 2-0:1.0: state 7 ports 3 chg 0000 evt 0008
Apr 21 17:15:18 snake kernel: ohci_hcd 0000:00:03.1: GetStatus 
roothub.portstatus [2] = 0x00010101 CSC PPS CCS
Apr 21 17:15:18 snake kernel: hub 2-0:1.0: port 3, status 0101, change 0001, 12 
Mb/s
Apr 21 17:15:19 snake kernel: hub 2-0:1.0: debounce: port 3: total 100ms stable 
100ms status 0x101
Apr 21 17:15:19 snake kernel: ohci_hcd 0000:00:03.1: GetStatus 
roothub.portstatus [2] = 0x00100103 PRSC PPS PES CCS
Apr 21 17:15:19 snake kernel: usb 2-3: new full speed USB device using ohci_hcd 
and address 12
Apr 21 17:15:19 snake kernel: ohci_hcd 0000:00:03.1: GetStatus 
roothub.portstatus [2] = 0x00100103 PRSC PPS PES CCS
Apr 21 17:15:19 snake kernel: usb 2-3: default language 0x0409
Apr 21 17:15:19 snake kernel: usb 2-3: new device strings: Mfr=25, Product=42, 
SerialNumber=101
Apr 21 17:15:19 snake kernel: usb 2-3: Product: Gadget Zero
Apr 21 17:15:19 snake kernel: usb 2-3: Manufacturer: Linux 2.6.15-uc0 with 
isp1362_udc
Apr 21 17:15:19 snake kernel: usb 2-3: SerialNumber: 
0123456789.0123456789.0123456789
Apr 21 17:15:19 snake kernel: usb 2-3: uevent
Apr 21 17:15:19 snake kernel: usb 2-3: configuration #3 chosen from 2 choices
Apr 21 17:15:19 snake kernel: usb 2-3: adding 2-3:3.0 (config #3, interface 0)
Apr 21 17:15:19 snake kernel: usb 2-3:3.0: uevent
Apr 21 17:15:19 snake kernel: usbtest 2-3:3.0: usb_probe_interface
Apr 21 17:15:19 snake kernel: usbtest 2-3:3.0: usb_probe_interface - got id
Apr 21 17:15:19 snake kernel: usbtest 2-3:3.0: Linux gadget zero
Apr 21 17:15:19 snake kernel: usbtest 2-3:3.0: full speed {control in/out 
bulk-in bulk-out} tests (+alt)
Apr 21 17:15:19 snake kernel: drivers/usb/core/inode.c: creating file '012'
Apr 21 17:15:19 snake kernel: hub 2-0:1.0: state 7 ports 3 chg 0000 evt 0008


Hamish
-- 
Hamish Moffatt VK3SB <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

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