Commit b46146d5 authored by Gregory Herrero's avatar Gregory Herrero Committed by Felipe Balbi
Browse files

usb: dwc2: host: resume root hub on remote wakeup



When a remote wakeup happens during bus_suspend, hcd needs to resume
its root hub.

Acked-by: default avatarJohn Youn <johnyoun@synopsys.com>
Signed-off-by: default avatarGregory Herrero <gregory.herrero@intel.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent fbba7db3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -316,11 +316,13 @@ void dwc2_hcd_disconnect(struct dwc2_hsotg *hsotg)
 */
static void dwc2_hcd_rem_wakeup(struct dwc2_hsotg *hsotg)
{
	if (hsotg->lx_state == DWC2_L2)
	if (hsotg->lx_state == DWC2_L2) {
		hsotg->flags.b.port_suspend_change = 1;
	else
		usb_hcd_resume_root_hub(hsotg->priv);
	} else {
		hsotg->flags.b.port_l1_change = 1;
	}
}

/**
 * dwc2_hcd_stop() - Halts the DWC_otg host mode operations in a clean manner