Re: Problems with usbtest on ATNGW100 was [RFC] ARM i.MX21 Host Controller Driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 28 Apr 2009, Martin Fuzzey wrote:

> Thank you for pointing this out.
> However I can't get it to work :(
> 
> Relevant parts of /proc/bus/usb/devices :
> 
> T:  Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 8
> B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
> D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
> P:  Vendor=0000 ProdID=0000 Rev= 2.06
> S:  Manufacturer=Linux 2.6.24-23-generic ehci_hcd
> S:  Product=EHCI Host Controller
> S:  SerialNumber=0000:00:1d.7
> C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
> I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
> E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms
> 
> T:  Bus=05 Lev=01 Prnt=01 Port=03 Cnt=02 Dev#=  8 Spd=480 MxCh= 0
> D:  Ver= 2.00 Cls=ff(vend.) Sub=00 Prot=00 MxPS=64 #Cfgs=  2
> P:  Vendor=0525 ProdID=a4a0 Rev= 2.18
> S:  Manufacturer=Linux 2.6.30-rc3 with atmel_usba_udc
> S:  Product=Gadget Zero
> S:  SerialNumber=0123456789.0123456789.0123456789
> C:* #Ifs= 1 Cfg#= 3 Atr=c0 MxPwr=  2mA
> I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=usbtest
> E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> C:  #Ifs= 1 Cfg#= 2 Atr=c0 MxPwr=  2mA
> I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=
> E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
> 
> When I do
> echo 3 > /sys/class/usb_host/usb_host5/companion
> 
> It's still high speed (even if I disconnect and reconnect it).

That's because the Port values in /proc/bus/usb/devices are off by one.  
(Don't ask me why -- that code was written before I came on the scene.)
You should have written a 4 instead of a 3.

> Maybe I need a newer kernel on the PC? (this is a stock Ubuntu 8.04 kernel)
> 
> However I can run usbtest from the PC at high speed and test 14 still
> fails in the same way as it does with the i.MX21 (I just wanted to force
> full speed to be in the same case and be able to use my full speed only
> Beagle)
> 
>  udc: ep0: TXCOMP: Invalid endpoint state 2, halting endpoint...
> 
> I've updated the atngw100 to 2.6.30rc3, no difference.

Try again with the right port number.

Another approach (which you may not be able to do, depending on what
other USB devices you've got) is simply to rmmod ehci-hcd.  That will
force _all_ connections to run at full or low speed.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux