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

Commit 4d1b733b authored by Arun Kumar Neelakantam's avatar Arun Kumar Neelakantam Committed by Divya Sharma
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 429fc903
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line 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,
	ret = devm_request_threaded_irq(&pdev->dev, smp2p->irq,
					NULL, qcom_smp2p_intr,
					NULL, qcom_smp2p_intr,
					IRQF_ONESHOT,
					IRQF_NO_SUSPEND | IRQF_ONESHOT,
					"smp2p", (void *)smp2p);
					"smp2p", (void *)smp2p);
	if (ret) {
	if (ret) {
		dev_err(&pdev->dev, "failed to request interrupt\n");
		dev_err(&pdev->dev, "failed to request interrupt\n");
		goto unwind_interfaces;
		goto unwind_interfaces;
	}
	}

	enable_irq_wake(smp2p->irq);


	return 0;
	return 0;