Ran Bi 653997eeec rtc: mt6397: fix alarm register overwrite
Alarm registers high byte was reserved for other functions.
This add mask in alarm registers operation functions.
This also fix error condition in interrupt handler.

Fixes: fc2979118f3f ("rtc: mediatek: Add MT6397 RTC driver")

Signed-off-by: Ran Bi <ran.bi@mediatek.com>
Signed-off-by: Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com>
Link: https://lore.kernel.org/r/1576057435-3561-6-git-send-email-hsin-hsiung.wang@mediatek.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2019-12-11 13:22:54 +01:00
..
2019-06-18 19:12:47 +01:00
2019-07-15 20:18:40 -07:00
2019-11-11 08:45:01 +00:00
2019-01-16 13:59:34 +00:00
2019-07-09 08:59:39 -07:00
2019-07-09 08:59:39 -07:00
2019-01-15 06:24:36 +12:00
2019-03-08 10:02:58 -08:00