[PATCH v4 1/1] rtc: nuvoton: Compatible with NCT3015Y-R and NCT3018Y-R

Mining Lin mimi05633 at gmail.com
Thu Aug 31 10:57:13 AEST 2023


Dear Alexandre,

Thanks for your comments.
I will store the part number to global parameter in probe and use it to check before setting time.

Thanks.
Best regard,
Mia

Sent from my iPhone

> On Aug 29, 2023, at 10:22 PM, Alexandre Belloni <alexandre.belloni at bootlin.com> wrote:
> 
> On 29/08/2023 21:35:36+0800, Minying Lin wrote:
>>> Do you really have to check the part number every time you set the time?
>>> I don't expect it to change once read in probe.
>>> 
>> [Mia] Due to the 3018Y's topology, we need to set the TWO bit first to
>> obtain the write time capability, but the 3015Y does not have this problem.
>> Therefore, we use part number & TWO bit to determine whether we need to set
>> the TWO bit first before set time.
>> 
> 
> Sure but why don't you store the info somewhere instead of reading it
> from the RTC every time?
> 
>>> 
>>>> +     if (part_num < 0) {
>>>> +             dev_dbg(&client->dev, "%s: Failed to read part info
>>> reg.\n", __func__);
>>>> +             return part_num;
>>>> +     }
>>>> +
>>> 
>>> --
>>> Alexandre Belloni, co-owner and COO, Bootlin
>>> Embedded Linux and Kernel engineering
>>> https://bootlin.com
>>> 
> 
> -- 
> Alexandre Belloni, co-owner and COO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20230831/cc29ffe5/attachment.htm>


More information about the openbmc mailing list