diff options
| author | Alexander Sverdlin <alexander.sverdlin@siemens.com> | 2026-08-28 18:44:41 +0200 |
|---|---|---|
| committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2026-10-29 11:23:58 +0100 |
| commit | 09f5d9b8caafdfed36fb8115348e2cf1f1c31793 (patch) | |
| tree | 315e9b9cf12280d7dca48198a46201a9e63260ce /tools/lib/python | |
| parent | 75ba9f3a6a0bb2153a97e5d9c3d186b6c6e517af (diff) | |
rtc: pcf85063: preserve the alarm flag in clkout register updates
The clkout rate and enable/disable helpers update CTRL2 with
regmap_update_bits() but leave the alarm flag (AF) out of the mask. AF is
write-0-to-clear, so an AF that gets asserted between the read and the
write of the read-modify-write is written back as 0 and the pending alarm
interrupt is lost.
Add AF to the mask and write it back as 1 (write-1-to-preserve) so a
concurrently asserted alarm flag survives a clkout reconfiguration.
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@siemens.com>
Link: https://patch.msgid.link/20260828164445.3907839-4-alexander.sverdlin@siemens.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
