Commit b77b0d00 authored by Artur Petrosyan's avatar Artur Petrosyan Committed by Greg Kroah-Hartman

usb: dwc2: Add partial power down exit flow in wakeup intr.

According to programming guide added host partial power
down exit flow in wakeup detected interrupt handler.
Acked-by: default avatarMinas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Signed-off-by: default avatarArtur Petrosyan <Arthur.Petrosyan@synopsys.com>
Link: https://lore.kernel.org/r/20210408094454.5BBCBA0094@mailhost.synopsys.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c9c394ab
...@@ -423,15 +423,14 @@ static void dwc2_handle_wakeup_detected_intr(struct dwc2_hsotg *hsotg) ...@@ -423,15 +423,14 @@ static void dwc2_handle_wakeup_detected_intr(struct dwc2_hsotg *hsotg)
hsotg->lx_state = DWC2_L0; hsotg->lx_state = DWC2_L0;
} }
} else { } else {
if (hsotg->params.power_down) if (hsotg->lx_state == DWC2_L2) {
return; if (hsotg->in_ppd) {
ret = dwc2_exit_partial_power_down(hsotg, 1,
if (hsotg->lx_state != DWC2_L1) { true);
u32 pcgcctl = dwc2_readl(hsotg, PCGCTL); if (ret)
dev_err(hsotg->dev,
/* Restart the Phy Clock */ "exit partial_power_down failed\n");
pcgcctl &= ~PCGCTL_STOPPCLK; }
dwc2_writel(hsotg, pcgcctl, PCGCTL);
/* /*
* If we've got this quirk then the PHY is stuck upon * If we've got this quirk then the PHY is stuck upon
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment