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

Commit 532a489b authored by Arun Kumar Neelakantam's avatar Arun Kumar Neelakantam Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: smp2p: Add wakeup capable flags to SMP2P IRQ



SMP2P interrupts are expected during APPS suspend path also.

Use the IRQF_NO_SUSPEND flag to handle during suspend path and
enable_irq_wake to resume from the suspend state.

Change-Id: I48ce5669ec230c7eb8b2107bf12b2cbe6e01e59a
Signed-off-by: default avatarArun Kumar Neelakantam <aneela@codeaurora.org>
parent f6f026ce
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -623,13 +623,13 @@ static int qcom_smp2p_probe(struct platform_device *pdev)

	ret = devm_request_threaded_irq(&pdev->dev, smp2p->irq,
					NULL, qcom_smp2p_intr,
					IRQF_ONESHOT,
					IRQF_NO_SUSPEND | IRQF_ONESHOT,
					"smp2p", (void *)smp2p);
	if (ret) {
		dev_err(&pdev->dev, "failed to request interrupt\n");
		goto unwind_interfaces;
	}

	enable_irq_wake(smp2p->irq);

	return 0;