Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e60df8c0 authored by Mayank Rana's avatar Mayank Rana
Browse files

dwc3-msm: Don't fail USB LPM sequence if IN_L2 error is seen



In some instance it is being observed that USB controller is not
putting HSPHY into suspend state which results into IN_L2 error
and aborts USB low power mode. Not going into IN_L2 error is not
error fatal, hence continue with USB low power mode if this
error is seen.

Change-Id: I85f3567bdc897fbfffbbe95dec45d52d36106b06
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent f5d3db32
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1250,10 +1250,8 @@ static int dwc3_msm_prepare_suspend(struct dwc3_msm *mdwc)
		if (reg & PWR_EVNT_LPM_IN_L2_MASK)
			break;
	}
	if (!(reg & PWR_EVNT_LPM_IN_L2_MASK)) {
	if (!(reg & PWR_EVNT_LPM_IN_L2_MASK))
		dev_err(mdwc->dev, "could not transition HS PHY to L2\n");
		return -EBUSY;
	}

	/* Clear L2 event bit */
	dwc3_msm_write_reg(mdwc->base, PWR_EVNT_IRQ_STAT_REG,