mbox series

[0/2] Add proper Update handling to PCF212x

Message ID 20240528161242.404352-1-csokas.bence@prolan.hu
Headers show
Series Add proper Update handling to PCF212x | expand

Message

Csókás Bence May 28, 2024, 4:12 p.m. UTC
The PCF212x family is capable of sending interrupts when
its value changes. The RTC core, on the other hand, relies
on setting an alarm to the next second to get an Update
Interrupt. This can sometimes fail, if the Alarm Flag
is not cleared in time, causing a lost Update event.

FYI the patches were made against the v6.8 tag.

Csókás, Bence (2):
  rtc: Add UIE handling ability to rtc_class_ops
  rtc: pcf2127: Add UIE capability through Seconds Interrupt

 drivers/rtc/interface.c   |  8 ++++++++
 drivers/rtc/rtc-pcf2127.c | 24 ++++++++++++++++++++++++
 include/linux/rtc.h       |  1 +
 3 files changed, 33 insertions(+)