diff options
author | Riwen Lu <luriwen@kylinos.cn> | 2022-08-10 15:01:09 +0800 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2022-11-16 23:16:38 +0100 |
commit | eec79501cce6e8965e92174760c6a9e92d78a038 (patch) | |
tree | 12b9ea766cd4f47652506ab639b153c9c426505f | |
parent | 60cfac17d0a1c28cd41959e95ba1e0ecc47165e7 (diff) | |
download | linux-stable-eec79501cce6e8965e92174760c6a9e92d78a038.tar.gz linux-stable-eec79501cce6e8965e92174760c6a9e92d78a038.tar.bz2 linux-stable-eec79501cce6e8965e92174760c6a9e92d78a038.zip |
rtc: efi: Add wakeup support
Add wakeup support for rtc-efi, so we can wakeup from S3/S4/S5 through
rtcwake.
Signed-off-by: Riwen Lu <luriwen@kylinos.cn>
Link: https://lore.kernel.org/r/TYWP286MB260191455377CEBD2336557EB1659@TYWP286MB2601.JPNP286.PROD.OUTLOOK.COM
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r-- | drivers/rtc/rtc-efi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-efi.c b/drivers/rtc/rtc-efi.c index 11850c2880ad..e991cccdb6e9 100644 --- a/drivers/rtc/rtc-efi.c +++ b/drivers/rtc/rtc-efi.c @@ -271,6 +271,8 @@ static int __init efi_rtc_probe(struct platform_device *dev) clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc->features); set_bit(RTC_FEATURE_ALARM_WAKEUP_ONLY, rtc->features); + device_init_wakeup(&dev->dev, true); + return devm_rtc_register_device(rtc); } |