[OpenWrt-Devel] [PATCH] [lantiq] ltq-hcd usb fix high speed hub mode

2012-12-16 Thread Conor O'Gorman
Simple update for USB api changes.

Signed-off-by: Conor O'Gorman i...@conorogorman.net
---
Tested on danube with a 3G module, and using SLUB debug.
Previous version of the driver showed SLUB errors. Not this one,
and it's interrupt rate seems moderate, which was a nice addition
in the previous.

 package/platform/lantiq/ltq-hcd/src/ifxhcd.c |8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/package/platform/lantiq/ltq-hcd/src/ifxhcd.c 
b/package/platform/lantiq/ltq-hcd/src/ifxhcd.c
index 6d1551f..be0a91d 100644
--- a/package/platform/lantiq/ltq-hcd/src/ifxhcd.c
+++ b/package/platform/lantiq/ltq-hcd/src/ifxhcd.c
@@ -1349,10 +1349,10 @@ int ifxhcd_hub_control( struct usb_hcd *_syshcd,
port_status |= (1  USB_PORT_FEAT_RESET);
if (hprt0.b.prtpwr)
port_status |= (1  USB_PORT_FEAT_POWER);
-/* if  (hprt0.b.prtspd == 
IFXUSB_HPRT0_PRTSPD_HIGH_SPEED)
-   port_status |= (1  USB_PORT_FEAT_HIGHSPEED);
-   else*/ if (hprt0.b.prtspd == 
IFXUSB_HPRT0_PRTSPD_LOW_SPEED)
-   port_status |= (1  USB_PORT_FEAT_LOWSPEED);
+   if (hprt0.b.prtspd == IFXUSB_HPRT0_PRTSPD_HIGH_SPEED)
+   port_status |= USB_PORT_STAT_HIGH_SPEED;
+   else if (hprt0.b.prtspd == 
IFXUSB_HPRT0_PRTSPD_LOW_SPEED)
+   port_status |= USB_PORT_STAT_LOW_SPEED;
if (hprt0.b.prttstctl)
port_status |= (1  USB_PORT_FEAT_TEST);
/* USB_PORT_FEAT_INDICATOR unsupported always 0 */
-- 
1.7.9.5

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] [lantiq] ltq-hcd usb fix high speed hub mode

2012-12-16 Thread John Crispin

On 17/12/12 00:18, Conor O'Gorman wrote:

Simple update for USB api changes.

Signed-off-by: Conor O'Gormani...@conorogorman.net
---
Tested on danube with a 3G module, and using SLUB debug.
Previous version of the driver showed SLUB errors. Not this one,
and it's interrupt rate seems moderate, which was a nice addition
in the previous.

  package/platform/lantiq/ltq-hcd/src/ifxhcd.c |8 
  1 file changed, 4 insertions(+), 4 deletions(-)



Hi,

what a nice patch to wake up to ;)

thats already 1 thing off my todo list for today :-)

i'll test / merge it during the day

Thanks,
John
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel