ltq-hcd usb fix high speed hub mode
authorJohn Crispin <john@openwrt.org>
Tue, 18 Dec 2012 19:31:46 +0000 (19:31 +0000)
committerJohn Crispin <john@openwrt.org>
Tue, 18 Dec 2012 19:31:46 +0000 (19:31 +0000)
Simple update for USB api changes.

Signed-off-by: Conor O'Gorman <i@conorogorman.net>
SVN-Revision: 34770

package/platform/lantiq/ltq-hcd/src/ifxhcd.c

index 6d1551f3633c4b95946da796e5b8aeb76ed4a95b..be0a91d262270932b2b5cf1ea6ed3d62d5ced802 100644 (file)
@@ -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 */