]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mailbox: qcom-ipcc: Support interrupt wake up from suspend
authorHuang Yiwei <quic_hyiwei@quicinc.com>
Mon, 22 Nov 2021 05:05:08 +0000 (13:05 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Wed, 12 Jan 2022 05:47:33 +0000 (23:47 -0600)
Use IRQF_NO_SUSPEND flag instead of enable_irq_wake to
support interrupt wake up from suspend.

Signed-off-by: Huang Yiwei <quic_hyiwei@quicinc.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/qcom-ipcc.c

index e80aaf83a0890759724b7b68dc1205de0a42bc84..c5d9632220146058689a78d89270e9244c6d9036 100644 (file)
@@ -289,13 +289,12 @@ static int qcom_ipcc_probe(struct platform_device *pdev)
                goto err_mbox;
 
        ret = devm_request_irq(&pdev->dev, ipcc->irq, qcom_ipcc_irq_fn,
-                              IRQF_TRIGGER_HIGH, name, ipcc);
+                              IRQF_TRIGGER_HIGH | IRQF_NO_SUSPEND, name, ipcc);
        if (ret < 0) {
                dev_err(&pdev->dev, "Failed to register the irq: %d\n", ret);
                goto err_req_irq;
        }
 
-       enable_irq_wake(ipcc->irq);
        platform_set_drvdata(pdev, ipcc);
 
        return 0;