add alarm support for the rtc-ab-eoz9
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 2 repliesApplied
- v14 patches 6 repliesSuperseded
Changes in v2 from the cover letter
- drop abeoz9_reset_validity in abeoz9_rtc_set_alarm since we don't know for sure the time is set properly at that time.
- keep the RTC_FEATURE_ALARM change in a separate patch for easy backport
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | rtc: ab-eoz9: set regmap max_registerdrivers/ | +1 | 0 replies | |
| 2/3 | rtc: ab-eoz9: add alarm supportdrivers/ | +136 | 0 replies | |
| 3/3 | rtc: ab-eoz9: make use of RTC_FEATURE_ALARMdrivers/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/3] add alarm support for the rtc-ab-eoz9
From: Liam Beguin <[email protected]>
Add alarm support for the rtc-ab-eoz9.
The board used to test this series has the interrupt line of the RTC connected to a circuit controlling the power of the board.
An event on the interrupt line while the board is off will power it on. Because of these hardware limitations, the irq handler added in this patch wasn't fully tested.
The alarm functionality was tested, with:
$ date "2010-10-10 10:10" Sun Oct 10 10:10:00 UTC 2010 $ /usr/sbin/rtcwake -u -d /dev/rtc0 -s20 --mode off [ ... ] $ # power on after 20 seconds
Changes since v1:
- drop abeoz9_reset_validity in abeoz9_rtc_set_alarm since we don't know for sure the time is set properly at that time.
- keep the RTC_FEATURE_ALARM change in a separate patch for easy backport
Liam Beguin (3):
rtc: ab-eoz9: set regmap max_register
rtc: ab-eoz9: add alarm support
rtc: ab-eoz9: make use of RTC_FEATURE_ALARM
drivers/rtc/rtc-ab-eoz9.c | 135 +++++++++++++++++++++++++++++++++++++- 1 file changed, 134 insertions(+), 1 deletion(-)
Range-diff against v1:
1: 7809a783807d < -: ------------ rtc: ab-eoz9: make use of regmap local variable
2: 3b5d3fa74715 = 1: d2c1ffa4007b rtc: ab-eoz9: set regmap max_register
3: 0a19ed90d4cc ! 2: ac36be1f5f61 rtc: ab-eoz9: add alarm support
@@ drivers/rtc/rtc-ab-eoz9.c: static int abeoz9_rtc_set_time(struct device *dev, st
+ if (ret)
+ return ret;
+
-+ ret = abeoz9_reset_validity(data->regmap);
-+ if (ret)
-+ return ret;
-+
+ return abeoz9_rtc_alarm_irq_enable(dev, alarm->enabled);
+}
+4: 7004d40f2f36 = 3: 1987bef12ee8 rtc: ab-eoz9: make use of RTC_FEATURE_ALARM
base-commit: e49d033bddf5b565044e2abe4241353959bc9120
Signature · 1 line
2.30.1.489.g328c10930387