* [PATCH v1] rtc/rtc-efi: Add wakeup support
@ 2022-08-10 7:01 Riwen Lu
2022-11-16 22:17 ` Alexandre Belloni
0 siblings, 1 reply; 2+ messages in thread
From: Riwen Lu @ 2022-08-10 7:01 UTC (permalink / raw)
To: a.zummo, alexandre.belloni; +Cc: linux-rtc, linux-kernel, Riwen Lu
From: Riwen Lu <luriwen@kylinos.cn>
Add wakeup support for rtc-efi, so we can wakeup from S3/S4/S5 through
rtcwake.
Signed-off-by: Riwen Lu <luriwen@kylinos.cn>
---
v1: Tested in ARM64 platform.
---
drivers/rtc/rtc-efi.c | 2 ++
1 file changed, 2 insertions(+)
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);
}
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1] rtc/rtc-efi: Add wakeup support
2022-08-10 7:01 [PATCH v1] rtc/rtc-efi: Add wakeup support Riwen Lu
@ 2022-11-16 22:17 ` Alexandre Belloni
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2022-11-16 22:17 UTC (permalink / raw)
To: Riwen Lu, a.zummo; +Cc: linux-rtc, linux-kernel, Riwen Lu
On Wed, 10 Aug 2022 15:01:09 +0800, Riwen Lu wrote:
> From: Riwen Lu <luriwen@kylinos.cn>
>
> Add wakeup support for rtc-efi, so we can wakeup from S3/S4/S5 through
> rtcwake.
>
>
Applied, thanks!
[1/1] rtc/rtc-efi: Add wakeup support
commit: eec79501cce6e8965e92174760c6a9e92d78a038
Best regards,
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-16 22:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-10 7:01 [PATCH v1] rtc/rtc-efi: Add wakeup support Riwen Lu
2022-11-16 22:17 ` Alexandre Belloni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.