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

Commit ff219a44 authored by Linyu Yuan's avatar Linyu Yuan Committed by Gerrit - the friendly Code Review server
Browse files

usb: dwc3: remove LPM L2 OUT interrupt



when LPM L2 OUT interrupt happen, need to clear state bit for new,
but there is issue for old code: irq_stat |= PWR_EVNT_LPM_OUT_L2_MASK;,
acctually it should be: irq_clear |= PWR_EVNT_LPM_OUT_L2_MASK;,
old code do nothing, it just test bit -> clear bit --> set bit,
remove old code will keep old behaviour.

Change-Id: Ib5938a31df69793c3b21914777ff0e0ac11be59d
Signed-off-by: default avatarLinyu Yuan <linyyuan@codeaurora.org>
parent ca87a6d5
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -2917,12 +2917,6 @@ static void dwc3_pwr_event_handler(struct dwc3_msm *mdwc)
		irq_clear |= PWR_EVNT_POWERDOWN_IN_P3_MASK;
	}

	/* Clear L2 exit */
	if (irq_stat & PWR_EVNT_LPM_OUT_L2_MASK) {
		irq_stat &= ~PWR_EVNT_LPM_OUT_L2_MASK;
		irq_stat |= PWR_EVNT_LPM_OUT_L2_MASK;
	}

	/* Handle exit from L1 events */
	if (irq_stat & PWR_EVNT_LPM_OUT_L1_MASK) {
		dev_dbg(mdwc->dev, "%s: handling PWR_EVNT_LPM_OUT_L1_MASK\n",