mailbox: rockchip: add irq wake up support

Parse and enable irq wakeup if the "wakeup-source" property was present.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I21b974d65dc02c1f3bd5f0e52a1372367b77a6e4
This commit is contained in:
Frank Wang
2022-05-23 16:32:20 +08:00
committed by Tao Huang
parent 30a38eea6d
commit 12b2ec6090

View File

@@ -224,6 +224,9 @@ static int rockchip_mbox_probe(struct platform_device *pdev)
mb);
if (ret < 0)
return ret;
if (device_property_present(&pdev->dev, "wakeup-source"))
enable_irq_wake(irq);
}
mb->chans[i].idx = i;