RE: [EXT] Re: [PATCH v11 2/2] rtc: Add NXP PCF85053 driver support
From: Lakshay Piplani
Date: Thu Dec 03 2026 - 23:52:11 EST
> Specifically:
> - Leave write ownership to the secondary bus (TWO = 0) by default.
> - When the primary bus needs to update the time in set_time(), temporarily
> claim ownership (TWO = 1), write the time registers, and restore it back to
> TWO = 0 once the update is finished.
>
> This way, the secondary bus can update the RTC time by default, and the
> primary bus can still update it whenever needed without permanently blocking
> the secondary bus.
Hi Potin,
Thanks for the review and for explaining your use case.
I agree that dynamic write ownership would allow both interfaces to update the RTC time without permanently blocking the secondary interface.
I'll follow the approach used in rtc-nct3018y.c, keeping TWO cleared by default and temporarily claiming write ownership when setting the time through the primary interface. I'll also ensure that ownership is restored on error paths.
I'll incorporate these changes in v12.
Thanks,
Lakshay
NXP Public