Skip to content

Commit

Permalink
mailbox: qcom-ipcc: Support interrupt wake up from suspend
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Huang Yiwei authored and Jassi Brar committed Jan 12, 2022
1 parent 1f43e52 commit afaf2ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/mailbox/qcom-ipcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit afaf2ba

Please sign in to comment.