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

Commit 4546a4d5 authored by Tony Truong's avatar Tony Truong
Browse files

msm: pcie: ignore wake irqs that are not from the endpoint



A source that is not an endpoint may trigger a wake irq. Thus,
ignore wake irqs that are not from the endpoint.

Change-Id: I2f4136450b17ae232ac4f9fd4d2b1378368882ec
Signed-off-by: default avatarTony Truong <truong@codeaurora.org>
parent 33164ae0
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2424,7 +2424,12 @@ static irqreturn_t handle_wake_irq(int irq, void *data)

	if (!dev->enumerated) {
		PCIE_DBG(dev, "Start enumeating RC%d\n", dev->rc_idx);
		if (dev->ep_wakeirq)
			schedule_work(&dev->handle_wake_work);
		else
			PCIE_DBG(dev,
				"wake irq is received but ep_wakeirq is not supported for RC%d.\n",
				dev->rc_idx);
	} else {
		PCIE_DBG(dev, "Wake up RC%d\n", dev->rc_idx);
		__pm_stay_awake(&dev->ws);