Skip to content

Commit 1985766

Browse files
MrVanUlf Hansson
authored andcommitted
usb: dwc3: imx8mp: Set out of band wakeup for i.MX95
i.MX95 DWC3 inside HSIOMIX could still wakeup Linux, even if HSIOMIX power domain(Digital logic) is off. There is still always on logic have the wakeup capability which is out band wakeup capbility. So use device_set_out_band_wakeup for i.MX95 to make sure DWC3 could wakeup system even if HSIOMIX power domain is in off state. Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Tested-by: Xu Yang <xu.yang_2@nxp.com> Reviewed-by: Xu Yang <xu.yang_2@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 8548253 commit 1985766

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

drivers/usb/dwc3/dwc3-imx8mp.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,10 +334,15 @@ static int dwc3_imx8mp_pm_suspend(struct device *dev)
334334

335335
ret = dwc3_imx8mp_suspend(dwc3_imx, PMSG_SUSPEND);
336336

337-
if (device_may_wakeup(dwc3_imx->dev))
337+
if (device_may_wakeup(dwc3_imx->dev)) {
338338
enable_irq_wake(dwc3_imx->irq);
339-
else
339+
340+
if (device_is_compatible(dev, "fsl,imx95-dwc3"))
341+
device_set_out_band_wakeup(dev);
342+
343+
} else {
340344
clk_disable_unprepare(dwc3_imx->suspend_clk);
345+
}
341346

342347
clk_disable_unprepare(dwc3_imx->hsio_clk);
343348
dev_dbg(dev, "dwc3 imx8mp pm suspend.\n");

0 commit comments

Comments
 (0)