linux-rtc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rtc: rtc-pm8xxx: control default alarm wake up capability
@ 2023-08-01 11:45 Anvesh Jain P
  2023-08-01 12:40 ` Alexandre Belloni
  0 siblings, 1 reply; 9+ messages in thread
From: Anvesh Jain P @ 2023-08-01 11:45 UTC (permalink / raw)
  To: Alessandro Zummo, Alexandre Belloni
  Cc: linux-rtc, linux-kernel, Venkata Rao Kakani, Anvesh Jain P

Enable & disable rtc alarm wake up capability based on
default parameter passed from device tree.

Signed-off-by: Venkata Rao Kakani <quic_vkakani@quicinc.com>
Signed-off-by: Anvesh Jain P <quic_ajainp@quicinc.com>
---
 drivers/rtc/rtc-pm8xxx.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c
index f6b779c12ca7..bed57be602b6 100644
--- a/drivers/rtc/rtc-pm8xxx.c
+++ b/drivers/rtc/rtc-pm8xxx.c
@@ -523,6 +523,9 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev)
 	if (rc)
 		return rc;
 
+	if (of_property_read_bool(pdev->dev.of_node, "disable-alarm-wakeup"))
+		device_set_wakeup_capable(&pdev->dev, false);
+
 	rc = dev_pm_set_wake_irq(&pdev->dev, rtc_dd->alarm_irq);
 	if (rc)
 		return rc;

base-commit: 0a8db05b571ad5b8d5c8774a004c0424260a90bd
-- 
2.17.1


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

end of thread, other threads:[~2023-08-08 19:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-01 11:45 [PATCH] rtc: rtc-pm8xxx: control default alarm wake up capability Anvesh Jain P
2023-08-01 12:40 ` Alexandre Belloni
2023-08-01 12:48   ` Anvesh Jain P
2023-08-01 19:34     ` Alexandre Belloni
2023-08-03 13:31       ` Anvesh Jain P
2023-08-03 13:39         ` Alexandre Belloni
2023-08-03 13:40           ` Alexandre Belloni
2023-08-07  4:56             ` Anvesh Jain P
2023-08-08 12:44               ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).