]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: cmos: let the core handle invalid time
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 21 Feb 2018 10:44:26 +0000 (11:44 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 1 Mar 2018 09:49:39 +0000 (10:49 +0100)
commit6569961beebeb2410d3833f14b240dd717aa0e50
treef28012e390919dc1b118606a722ad06a1f3d341d
parent93c394b2613420f0e8a96d6e87cf4b527aa40328
rtc: cmos: let the core handle invalid time

Setting the rtc to a valid time when the time is invalid is a bad practice,
because then userspace doesn't know it shouldn't trust the RTC.

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