Skip to content
Commit a2e920cf authored by Andrew Feldhaus's avatar Andrew Feldhaus Committed by Mahesh Mahadevan
Browse files

drivers: rtc: rtc_ds1307: Fix corruption of SECONDS register



We read/modify/write the CH/SECONDS register at initialisation to clear
only the Clock Halt bit and only if it is set.

The previous implementation zeroes the entire register unconditionally at
initialisation, which wipes the SECONDS fields.

Fixes #77354.

Signed-off-by: default avatarAndrew Feldhaus <github@feldhaus.co.uk>
parent 9c94ee53
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment