aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLan Tianyu <tianyu.lan@intel.com>2012-09-05 01:44:35 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-10 16:04:01 -0400
commit693d8eb853f62a1341cf59df151b12c053f34e8a (patch)
tree5652cc85da4d72e8823fd6a24b3377fcaf40aaf6
parent05f916894a692f0cc0973aef21521133623b21c0 (diff)
xhci: Handle clear PORT_POWER feature.
This patch makes the xHCI roothub code handle the clear PORT_POWER feature request. Setting port power is already handled. Signed-off-by: Lan Tianyu <tianyu.lan@intel.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/host/xhci-hub.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c
index 74bfc868b7ad..03032b3e6ed2 100644
--- a/drivers/usb/host/xhci-hub.c
+++ b/drivers/usb/host/xhci-hub.c
@@ -865,6 +865,10 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
865 xhci_disable_port(hcd, xhci, wIndex, 865 xhci_disable_port(hcd, xhci, wIndex,
866 port_array[wIndex], temp); 866 port_array[wIndex], temp);
867 break; 867 break;
868 case USB_PORT_FEAT_POWER:
869 xhci_writel(xhci, temp & ~PORT_POWER,
870 port_array[wIndex]);
871 break;
868 default: 872 default:
869 goto error; 873 goto error;
870 } 874 }