]> git.dujemihanovic.xyz Git - u-boot.git/commit
rtc: m41t62: fix wrong register use for set/reset ST bit
authorMax Yang <MAX.YANG@deltaww.com>
Mon, 10 May 2021 05:23:37 +0000 (05:23 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 15 Jul 2021 23:06:49 +0000 (19:06 -0400)
commit92cf458f8ad9410dedbedd41d048d26620ce5f12
tree8a515321e5c4bb70ca68bffea4c4d43e807c87ed
parentbc599042d4ca1a6c3956e86005c7be8debb8a2ff
rtc: m41t62: fix wrong register use for set/reset ST bit

Fix wrong register use when set/reset ST bit.
ST bit is in register M41T62_REG_SEC not in M41T62_REG_ALARM_HOUR.

I have not actually tested this. But this seemed buggy from inspection.

Fixes: 9bbe210512c4539 ("rtc: m41t62: add oscillator fail bit reset support")
Signed-off-by: Max Yang <max.yang@deltaww.com>
drivers/rtc/m41t62.c