drivers: rtc: max313xx: Ensure correct date is read after setting
authorMark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Mon, 20 Jan 2025 01:59:41 +0000 (14:59 +1300)
committerTom Rini <trini@konsulko.com>
Sun, 26 Jan 2025 17:33:13 +0000 (11:33 -0600)
commit0e4c345ecf653aab7684ef6ab0a9e794e8659f5f
treea88fe8f53030680e93f9e4ed63d3ccbe2fef6cd7
parentd86da7e2bd6ae89360ff020565f9bf82712d688e
drivers: rtc: max313xx: Ensure correct date is read after setting

When setting the time on the MAX31343, the time is not updated
for one second, and reading the time in this interval will give
the old time. Wait one second after writing so that the date
command will show the correct time when setting the clock.

Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Cc: Chris Packham <judge.packham@gmail.com>
Reviewed-by: Chris Packham <judge.packham@gmail.com>
drivers/rtc/max313xx.c