rtc: pm8xxx: Attach wake irq to device
authorLoic Poulain <loic.poulain@linaro.org>
Wed, 16 Feb 2022 15:24:42 +0000 (16:24 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 25 Mar 2022 10:37:55 +0000 (11:37 +0100)
commitb5bf5b283d07bd1f4d49657557fb99ec5fbfc588
tree9547a50b16a14bbc35e7e0ef07cb5b47c4c8a0e6
parent1521ca5b9f93e3d8c9782ac10a42bc5c3a3ba370
rtc: pm8xxx: Attach wake irq to device

Attach the interrupt as a wake-irq to the device, so that:
- A corresponding wakeup source is created (and reported in e.g
  /sys/kernel/debug/wakeup_sources).
- The power subsystem take cares of arming/disarming
  irq-wake automatically on suspend/resume.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/1645025082-6138-1-git-send-email-loic.poulain@linaro.org
drivers/rtc/rtc-pm8xxx.c