Re: [PATCH 3/4] rtc: ds1307: add calibration of_ for mt41txx chips.

From: Giulio Benetti
Date: Wed May 09 2018 - 14:31:50 EST


Hi Alexandre,

Il 08/05/2018 21:19, Alexandre Belloni ha scritto:
Hi,

There is a sysfs interface for calibration, please use it. this is
especially useful since the calibration value probably depend on
temperature so it has to be updated dynamically to be really useful.

See https://elixir.bootlin.com/linux/v4.16.7/source/Documentation/ABI/testing/sysfs-class-rtc#L68
and https://elixir.bootlin.com/linux/v4.16.7/source/drivers/rtc/interface.c#L999


Used sysfs now and just submitted V2 patchset.
Thanks for pointing me those links.

--
Giulio Benetti
CTO

MICRONOVA SRL
Sede: Via A. Niedda 3 - 35010 Vigonza (PD)
Tel. 049/8931563 - Fax 049/8931346
Cod.Fiscale - P.IVA 02663420285
Capitale Sociale € 26.000 i.v.
Iscritta al Reg. Imprese di Padova N. 02663420285
Numero R.E.A. 258642