1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-17 21:05:20 +02:00

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
This commit is contained in:
blogic 2012-12-18 19:31:46 +00:00
parent 62d789abf2
commit b895622716

View File

@ -1349,10 +1349,10 @@ int ifxhcd_hub_control( struct usb_hcd *_syshcd,
port_status |= (1 << USB_PORT_FEAT_RESET); port_status |= (1 << USB_PORT_FEAT_RESET);
if (hprt0.b.prtpwr) if (hprt0.b.prtpwr)
port_status |= (1 << USB_PORT_FEAT_POWER); port_status |= (1 << USB_PORT_FEAT_POWER);
/* if (hprt0.b.prtspd == IFXUSB_HPRT0_PRTSPD_HIGH_SPEED) if (hprt0.b.prtspd == IFXUSB_HPRT0_PRTSPD_HIGH_SPEED)
port_status |= (1 << USB_PORT_FEAT_HIGHSPEED); port_status |= USB_PORT_STAT_HIGH_SPEED;
else*/ if (hprt0.b.prtspd == IFXUSB_HPRT0_PRTSPD_LOW_SPEED) else if (hprt0.b.prtspd == IFXUSB_HPRT0_PRTSPD_LOW_SPEED)
port_status |= (1 << USB_PORT_FEAT_LOWSPEED); port_status |= USB_PORT_STAT_LOW_SPEED;
if (hprt0.b.prttstctl) if (hprt0.b.prttstctl)
port_status |= (1 << USB_PORT_FEAT_TEST); port_status |= (1 << USB_PORT_FEAT_TEST);
/* USB_PORT_FEAT_INDICATOR unsupported always 0 */ /* USB_PORT_FEAT_INDICATOR unsupported always 0 */