Skip to content
Commit 0680a6cd authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

rtc: ds1343: rework interrupt handling



Rework the interrupt handling to avoid caching the values as the core is
already doing that. The core also always ensures the rtc_time passed for
the alarm is fully populated.

The only trick is in read_alarm where status needs to be read before the
alarm registers to ensure the potential irq is not cleared.

Link: https://lore.kernel.org/r/20191019204941.6203-8-alexandre.belloni@bootlin.com
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent a9864290
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment