projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60cfac1
)
rtc: efi: Add wakeup support
author
Riwen Lu
<luriwen@kylinos.cn>
Wed, 10 Aug 2022 07:01:09 +0000
(15:01 +0800)
committer
Alexandre Belloni
<alexandre.belloni@bootlin.com>
Wed, 16 Nov 2022 22:16:38 +0000
(23:16 +0100)
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>
drivers/rtc/rtc-efi.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-efi.c
b/drivers/rtc/rtc-efi.c
index 11850c2880ad487d3e8b3306fe6057e766e40c1e..e991cccdb6e9cee46a104b03926d4f2945f34f59 100644
(file)
--- 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);
}