Re: [RFC PATCH v2] rtc: pcf2127: Add PPS capability through Seconds Interrupt

From: Richard Cochran
Date: Wed Jun 12 2024 - 01:06:57 EST



(adding Miroslav onto CC)

On Tue, Jun 11, 2024 at 05:04:57PM +0200, Csókás, Bence wrote:

> PCF2127/29/31 is capable of generating an interrupt on every
> second (SI) or minute (MI) change. It signals this through
> the Minute/Second Flag (MSF) as well, which needs to be cleared.

This is a RFC, and my comment is that a PPS from an RTC is not useful
to the Linux kernel.

The kernel only uses the RTC to boot strap the wall clock to some
approximate phase.

After that, Linux either continues with a free running clock, or it
synchronizes to a global time source via NTP. In the latter case,
Linux will write the NTP time back into the RTC.

So I can't see how the RTC's PPS provides any benefit.

Thanks,
Richard