aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2012-12-18 19:31:46 +0000
committerJohn Crispin <blogic@openwrt.org>2012-12-18 19:31:46 +0000
commitab19d67c09621dccf6776a47abb0bf5881f9a944 (patch)
tree865485b7db3913cf7afdcacad322a4384d94e579 /package
parent4a73e95a055cb72e086b1757ae67c8f3ec631d80 (diff)
downloadupstream-ab19d67c09621dccf6776a47abb0bf5881f9a944.tar.gz
upstream-ab19d67c09621dccf6776a47abb0bf5881f9a944.tar.bz2
upstream-ab19d67c09621dccf6776a47abb0bf5881f9a944.zip
ltq-hcd usb fix high speed hub mode
Simple update for USB api changes. Signed-off-by: Conor O'Gorman <i@conorogorman.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34770 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/platform/lantiq/ltq-hcd/src/ifxhcd.c8
1 files 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 6d1551f363..be0a91d262 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 */