Skip to content

Commit afaf2ba

Browse files
Huang YiweiJassiBrar
authored andcommitted
mailbox: qcom-ipcc: Support interrupt wake up from suspend
Use IRQF_NO_SUSPEND flag instead of enable_irq_wake to support interrupt wake up from suspend. Signed-off-by: Huang Yiwei <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent 1f43e52 commit afaf2ba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/mailbox/qcom-ipcc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,12 @@ static int qcom_ipcc_probe(struct platform_device *pdev)
289289
goto err_mbox;
290290

291291
ret = devm_request_irq(&pdev->dev, ipcc->irq, qcom_ipcc_irq_fn,
292-
IRQF_TRIGGER_HIGH, name, ipcc);
292+
IRQF_TRIGGER_HIGH | IRQF_NO_SUSPEND, name, ipcc);
293293
if (ret < 0) {
294294
dev_err(&pdev->dev, "Failed to register the irq: %d\n", ret);
295295
goto err_req_irq;
296296
}
297297

298-
enable_irq_wake(ipcc->irq);
299298
platform_set_drvdata(pdev, ipcc);
300299

301300
return 0;

0 commit comments

Comments
 (0)