mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
usb: ohci-at91: Do not drop unhandled USB suspend control requests
am: 40192c9666
Change-Id: I33901103122b32cfb69af983456ba1666e791d94
This commit is contained in:
@@ -361,7 +361,7 @@ static int ohci_at91_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
|
||||
|
||||
case USB_PORT_FEAT_SUSPEND:
|
||||
dev_dbg(hcd->self.controller, "SetPortFeat: SUSPEND\n");
|
||||
if (valid_port(wIndex)) {
|
||||
if (valid_port(wIndex) && ohci_at91->sfr_regmap) {
|
||||
ohci_at91_port_suspend(ohci_at91->sfr_regmap,
|
||||
1);
|
||||
return 0;
|
||||
@@ -404,7 +404,7 @@ static int ohci_at91_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
|
||||
|
||||
case USB_PORT_FEAT_SUSPEND:
|
||||
dev_dbg(hcd->self.controller, "ClearPortFeature: SUSPEND\n");
|
||||
if (valid_port(wIndex)) {
|
||||
if (valid_port(wIndex) && ohci_at91->sfr_regmap) {
|
||||
ohci_at91_port_suspend(ohci_at91->sfr_regmap,
|
||||
0);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user