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

Commit 058415b5 authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

phy: msm: usb: Disable PHY IRQ during resume routine



As a part of msm_otg_resume, USB reset happens which fires PHY
IRQ. This leads to various enumeration and SDP_CURRENT_MAX
notification issues on ADB cable connect, and low power mode
issue on cable disconnect.
Fix this by disabling PHY IRQ when msm_otg_resume starts and
until OTG comes out of LPM.

Change-Id: Id1f8cd6fbfa4bff64f3160d2a3777c352c63f6b2
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent ea7861da
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1553,6 +1553,8 @@ static int msm_otg_resume(struct msm_otg *motg)
	}

	disable_irq(motg->irq);
	if (motg->phy_irq)
		disable_irq(motg->phy_irq);
	wake_lock(&motg->wlock);

	/*
@@ -1680,6 +1682,8 @@ skip_phy_resume:
		enable_irq(motg->async_int);
		motg->async_int = 0;
	}
	if (motg->phy_irq)
		enable_irq(motg->phy_irq);
	enable_irq(motg->irq);

	/* Enable ASYNC_IRQ only during LPM */