mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
USB: ohci-jz4740: FEAT_POWER is a port feature, not a hub feature
Power control of hub ports target the CLEAR_FEATURE and SET_FEATURE requests to ports, not to the hub. Fix the hub control function to detect the request correctly. Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Lars-Peter Clausen <[email protected]> Acked-by: Alan Stern <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
4d6b5161db
commit
166cf4aa35
1 changed files with 2 additions and 2 deletions
|
|
@ -85,11 +85,11 @@ static int ohci_jz4740_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
|
|||
int ret = 0;
|
||||
|
||||
switch (typeReq) {
|
||||
case SetHubFeature:
|
||||
case SetPortFeature:
|
||||
if (wValue == USB_PORT_FEAT_POWER)
|
||||
ret = ohci_jz4740_set_vbus_power(jz4740_ohci, true);
|
||||
break;
|
||||
case ClearHubFeature:
|
||||
case ClearPortFeature:
|
||||
if (wValue == USB_PORT_FEAT_POWER)
|
||||
ret = ohci_jz4740_set_vbus_power(jz4740_ohci, false);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue