]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: ds1347: mask ALM OUT when reading time
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 7 Oct 2019 13:47:19 +0000 (15:47 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 7 Oct 2019 13:49:29 +0000 (15:49 +0200)
commitdec802cf30307bfe6805f50b8570da20bd5c95d9
treeac75e13d5b6107a617e91413852ba8a3091ed3c5
parentdd9096821663e01b54d22ab857514f1aa970c376
rtc: ds1347: mask ALM OUT when reading time

Bit 7 of the minutes registers is ALM OUT. It indicates an alarm fired.
Mask it out when reading the time.

Link: https://lore.kernel.org/r/20191007134724.15505-5-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1347.c