projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a11496e
)
xHCI: Clear link state change support
author
Andiry Xu
<
[email protected]
>
Wed, 27 Apr 2011 10:07:35 +0000
(18:07 +0800)
committer
Sarah Sharp
<
[email protected]
>
Mon, 2 May 2011 23:42:52 +0000
(16:42 -0700)
This patch adds support for Clear Port Feature(C_PORT_LINK_STATE)
request from usbcore.
Signed-off-by: Andiry Xu <
[email protected]
>
Signed-off-by: Sarah Sharp <
[email protected]
>
drivers/usb/host/xhci-hub.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/xhci-hub.c
b/drivers/usb/host/xhci-hub.c
index 1ab7f2e2c05f61b4a34e69960375dda4369a18d1..f3bafba4b5c66e617dce262e135d84dec298d8d1 100644
(file)
--- a/
drivers/usb/host/xhci-hub.c
+++ b/
drivers/usb/host/xhci-hub.c
@@
-361,6
+361,10
@@
static void xhci_clear_port_change_bit(struct xhci_hcd *xhci, u16 wValue,
status = PORT_PLC;
port_change_bit = "suspend/resume";
break;
+ case USB_PORT_FEAT_C_PORT_LINK_STATE:
+ status = PORT_PLC;
+ port_change_bit = "link state";
+ break;
default:
/* Should never happen */
return;
@@
-639,6
+643,7
@@
int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
case USB_PORT_FEAT_C_CONNECTION:
case USB_PORT_FEAT_C_OVER_CURRENT:
case USB_PORT_FEAT_C_ENABLE:
+ case USB_PORT_FEAT_C_PORT_LINK_STATE:
xhci_clear_port_change_bit(xhci, wValue, wIndex,
port_array[wIndex], temp);
break;