diff options
author | Andiry Xu <andiry.xu@amd.com> | 2011-04-27 06:07:35 -0400 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2011-05-02 19:42:52 -0400 |
commit | 85387c0ea3e1cd85ad9d7215917ff5e71ca2aea3 (patch) | |
tree | 2f6baf957432db40d719f21a17fce4a1d1208ff3 | |
parent | a11496ebf37534177d67222285e8debed7a39788 (diff) |
xHCI: Clear link state change support
This patch adds support for Clear Port Feature(C_PORT_LINK_STATE)
request from usbcore.
Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
-rw-r--r-- | drivers/usb/host/xhci-hub.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c index 1ab7f2e2c05f..f3bafba4b5c6 100644 --- 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, | |||
361 | status = PORT_PLC; | 361 | status = PORT_PLC; |
362 | port_change_bit = "suspend/resume"; | 362 | port_change_bit = "suspend/resume"; |
363 | break; | 363 | break; |
364 | case USB_PORT_FEAT_C_PORT_LINK_STATE: | ||
365 | status = PORT_PLC; | ||
366 | port_change_bit = "link state"; | ||
367 | break; | ||
364 | default: | 368 | default: |
365 | /* Should never happen */ | 369 | /* Should never happen */ |
366 | return; | 370 | return; |
@@ -639,6 +643,7 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, | |||
639 | case USB_PORT_FEAT_C_CONNECTION: | 643 | case USB_PORT_FEAT_C_CONNECTION: |
640 | case USB_PORT_FEAT_C_OVER_CURRENT: | 644 | case USB_PORT_FEAT_C_OVER_CURRENT: |
641 | case USB_PORT_FEAT_C_ENABLE: | 645 | case USB_PORT_FEAT_C_ENABLE: |
646 | case USB_PORT_FEAT_C_PORT_LINK_STATE: | ||
642 | xhci_clear_port_change_bit(xhci, wValue, wIndex, | 647 | xhci_clear_port_change_bit(xhci, wValue, wIndex, |
643 | port_array[wIndex], temp); | 648 | port_array[wIndex], temp); |
644 | break; | 649 | break; |