Re: (subset) [PATCH v2 00/22] rtc: pm8xxx: add support for setting time using nvmem
From: Alexandre Belloni
Date: Fri Feb 10 2023 - 04:05:09 EST
On 10/02/2023 08:53:52+0100, Johan Hovold wrote:
> On Thu, Feb 09, 2023 at 11:25:34PM +0100, Alexandre Belloni wrote:
> >
> > On Thu, 02 Feb 2023 16:54:26 +0100, Johan Hovold wrote:
> > > This series adds support for setting the RTC time on Qualcomm platforms
> > > where the PMIC RTC time registers are read-only by instead storing an
> > > offset in some other non-volatile memory. This is used to enable the RTC
> > > in the SC8280XP Compute Reference Design (CRD) and Lenovo Thinkpad X13s
> > > laptop.
> > >
> > > The RTCs in many Qualcomm devices are effectively broken due to the time
> > > registers being read-only. Instead some other non-volatile memory can be
> > > used to store and offset which a driver can take into account. On
> > > machines like the X13s, the UEFI firmware (and Windows) use a UEFI
> > > variable for storing such an offset, but not all Qualcomm systems use
> > > UEFI.
> > >
> > > [...]
> >
> > Applied, thanks!
> >
> > [01/22] rtc: pm8xxx: fix set-alarm race
> > commit: c88db0eff9722fc2b6c4d172a50471d20e08ecc6
>
> ...
>
> > [15/22] rtc: pm8xxx: drop error messages
> > commit: c94fb939e65155bc889e62396f83ef4317d643ac
>
> I noticed that you did not apply patches 16 and 17 that add support for
> the nvmem offset. Was that on purpose or a mistake?
This was on purpose, I'll handle them tonight.
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com