Linux RTC
 help / color / mirror / Atom feed
* [PATCH] rtc: bd70528: properly enable wakeup
@ 2026-09-10  9:25 Andreas Kemnade
  2026-09-10  9:35 ` sashiko-bot
  2026-09-10 10:28 ` Matti Vaittinen
  0 siblings, 2 replies; 4+ messages in thread
From: Andreas Kemnade @ 2026-09-10  9:25 UTC (permalink / raw)
  To: mazziesaccount, alexandre.belloni, linux-rtc, linux-kernel
  Cc: Andreas Kemnade

Wakeup on RTC alarm now only accidentially works when wakeup for the power
button connected to the same PMIC is also enabled. Fix that by properly
specifying the wakeup irq.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
---
 drivers/rtc/rtc-bd70528.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/rtc/rtc-bd70528.c b/drivers/rtc/rtc-bd70528.c
index 482810b61495d..dc86882562abd 100644
--- a/drivers/rtc/rtc-bd70528.c
+++ b/drivers/rtc/rtc-bd70528.c
@@ -11,6 +11,7 @@
 #include <linux/module.h>
 #include <linux/of.h>
 #include <linux/platform_device.h>
+#include <linux/pm_wakeirq.h>
 #include <linux/regmap.h>
 #include <linux/rtc.h>
 
@@ -320,6 +321,7 @@ static int bd70528_probe(struct platform_device *pdev)
 
 	device_set_wakeup_capable(&pdev->dev, true);
 	device_wakeup_enable(&pdev->dev);
+	devm_pm_set_wake_irq(&pdev->dev, irq);
 
 	rtc = devm_rtc_allocate_device(&pdev->dev);
 	if (IS_ERR(rtc)) {
-- 
2.47.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-10 14:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-10  9:25 [PATCH] rtc: bd70528: properly enable wakeup Andreas Kemnade
2026-09-10  9:35 ` sashiko-bot
2026-09-10 10:28 ` Matti Vaittinen
2026-09-10 14:23   ` Andreas Kemnade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox