]> git.baikalelectronics.ru Git - kernel.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)
commita74ee7d5ebe89865a0abe9ac297753675822265b
tree95ad57c2125f6e4f9a260543893b2d72d1a374eb
parentcaf2b0188db557635540164aa79fdf6acb97bc45
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