]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: m41t80: handle oscillator failure bit
authorMylène Josserand <mylene.josserand@free-electrons.com>
Tue, 29 Mar 2016 06:56:05 +0000 (08:56 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 20 May 2016 10:33:51 +0000 (12:33 +0200)
commit300b6899cdafbd24b107397883e7a5420a596609
tree4198df3102566ceec1e0d65052be1179aa610ba1
parent5995b32742424f0d108a240bcc934a3e0843d489
rtc: m41t80: handle oscillator failure bit

Handle the Oscillator Failure (OF) bit on each read of date-time.
If the OF is set, an error is returned (-EINVAL) instead of the date-time.
The OF bit is cleared each time the date is set.

Signed-off-by: Mylène Josserand <mylene.josserand@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-m41t80.c