]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rv8803: avoid clearing RV8803_FLAG_V2F in RTC_VL_CLR
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 14 Dec 2019 22:02:56 +0000 (23:02 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 18 Dec 2019 09:37:40 +0000 (10:37 +0100)
commitfeffff562da12b2a7e486da1ce591f7bf48efe64
tree5441ba8d7154e82f47f0fca97521c6b50b496873
parent4cbeeed19f3eecfbb2bb0cd033c6e6f08af48452
rtc: rv8803: avoid clearing RV8803_FLAG_V2F in RTC_VL_CLR

Stop clearing RV8803_FLAG_V2F in RTC_VL_CLR because it is a disservice to
userspace as it removes the important information that the RTC data is
invalid. This may lead userspace to set an invalid system time later on.

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