]> asedeno.scripts.mit.edu Git - linux.git/commit
rtc: rs5c348: report error when time is invalid
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 24 Sep 2018 15:05:09 +0000 (17:05 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 28 Sep 2018 12:21:03 +0000 (14:21 +0200)
commit1654a2b06b936c5e123978e6d9523b022a2a5aa1
tree95ad57c2125f6e4f9a260543893b2d72d1a374eb
parent2d7be4ed7addcaae8eba6ae8cdee83e2f7d39059
rtc: rs5c348: report error when time is invalid

Instead of resetting the RTC to an bogus valid time, let userspace know
that the time is invalid when XSTP is set. Reset XSTP when setting the time
again.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-rs5c348.c