|
@@ -1571,7 +1571,8 @@ static int dwc2_hcd_hub_control(struct dwc2_hsotg *hsotg, u16 typereq,
|
|
dev_dbg(hsotg->dev,
|
|
dev_dbg(hsotg->dev,
|
|
"ClearPortFeature USB_PORT_FEAT_SUSPEND\n");
|
|
"ClearPortFeature USB_PORT_FEAT_SUSPEND\n");
|
|
|
|
|
|
- dwc2_port_resume(hsotg);
|
|
|
|
|
|
+ if (hsotg->bus_suspended)
|
|
|
|
+ dwc2_port_resume(hsotg);
|
|
break;
|
|
break;
|
|
|
|
|
|
case USB_PORT_FEAT_POWER:
|
|
case USB_PORT_FEAT_POWER:
|