Author: wmb Date: 2008-11-12 05:40:32 +0100 (Wed, 12 Nov 2008) New Revision: 1004
Modified: dev/usb2/hcd/ehci/probe.fth Log: OLPC trac 6602 - USB set-address fails on some devices (e.g. Lexar USB-to-SD) unless you first do a get-device-descriptor.
Modified: dev/usb2/hcd/ehci/probe.fth =================================================================== --- dev/usb2/hcd/ehci/probe.fth 2008-11-11 23:24:49 UTC (rev 1003) +++ dev/usb2/hcd/ehci/probe.fth 2008-11-12 04:40:32 UTC (rev 1004) @@ -7,6 +7,12 @@ : make-root-hub-node ( port -- ) ok-to-add-device? 0= if drop exit then \ Can't add another device
+ 0 set-target ( port ) \ Address it as device 0 + + speed-high 0 di-speed! \ Use high speed for getting the device descriptor + \ Some devices (e.g. Lexar USB-to-SD) don't work unless you do this first + dev-desc-buf h# 40 get-cfg-desc drop + new-address ( port dev ) speed-high over di-speed! ( port dev )
openfirmware@openfirmware.info