OSDN Git Service

rtc: da9063: Mark the alarm IRQ as a wake IRQ
authorSamuel Holland <samuel.holland@sifive.com>
Mon, 17 Jul 2023 19:09:37 +0000 (12:09 -0700)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 16 Aug 2023 23:09:50 +0000 (01:09 +0200)
commited17a2bcbb75505bb979e3e8ecb6c5fb2518bf3b
treefbd976049b6c7109cb26a2e17bcd0b599991252d
parent58dffa96e62ccf30ecba718f124ce822ddc1150a
rtc: da9063: Mark the alarm IRQ as a wake IRQ

This keeps the IRQ enabled during system suspend, if the RTC's wakeup
source is enabled. Since the IRQ is not required to wake from shutdown,
continue to add the wakeup source even if registering the wakeirq fails.
See commit 029d3a6f2f3c ("rtc: da9063: add as wakeup source").

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20230717190937.1301509-1-samuel.holland@sifive.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-da9063.c