diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c index 5d569792a6ec..cd83869a47e7 100644 --- a/drivers/usb/dwc2/platform.c +++ b/drivers/usb/dwc2/platform.c @@ -702,6 +702,7 @@ static int __maybe_unused dwc2_resume(struct device *dev) /* Stop hcd if dr_mode is host and PD is power off when suspend */ if (dwc2->op_state == OTG_STATE_A_HOST && dwc2_is_device_mode(dwc2)) { dwc2_hcd_disconnect(dwc2, true); + dwc2->op_state = OTG_STATE_B_PERIPHERAL; dwc2->lx_state = DWC2_L3; }