
10 Aug
2021
10 Aug
'21
4:51 a.m.
The DS1307 driver also supports the DS1337, DS1339 and DS1340 rtc. However the reset registers between these rtc devices are not the same. This means calling the rtc reset routine for a DS1307 clock on a DS1340 device will cause the clock to be calibrated incorrectly rather than correctly reset.
Define different reset routines for the different clock variants to prevent a rtc reset causing the clock to become incorrectly calibrated rather than reset.
Callum Sinclair (1): rtc: ds1307: Fix incorrect clock reset for DS13xx
drivers/rtc/ds1307.c | 69 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 56 insertions(+), 13 deletions(-)
--
2.32.0