Commit 19857666 authored by Peng Fan's avatar Peng Fan Committed by Ulf Hansson
Browse files

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: default avatarThinh Nguyen <Thinh.Nguyen@synopsys.com>
Tested-by: default avatarXu Yang <xu.yang_2@nxp.com>
Reviewed-by: default avatarXu Yang <xu.yang_2@nxp.com>
Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 85482536
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -334,10 +334,15 @@ static int dwc3_imx8mp_pm_suspend(struct device *dev)

	ret = dwc3_imx8mp_suspend(dwc3_imx, PMSG_SUSPEND);

	if (device_may_wakeup(dwc3_imx->dev))
	if (device_may_wakeup(dwc3_imx->dev)) {
		enable_irq_wake(dwc3_imx->irq);
	else

		if (device_is_compatible(dev, "fsl,imx95-dwc3"))
			device_set_out_band_wakeup(dev);

	} else {
		clk_disable_unprepare(dwc3_imx->suspend_clk);
	}

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