diff options
author | Jan Östlund <jao@hms.se> | 2016-08-11 14:31:44 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-08-31 19:21:35 +0300 |
commit | 421a5ba24b3ef23b8972a6c238bd300abef532da (patch) | |
tree | 0b620b64c90e540777d555411e0790d10f9ed6ed /drivers/rtc/rtc-pic32.c | |
parent | 6ed1a51e0b8a981ab0540117f0c47c1f11fca5fa (diff) | |
download | linux-421a5ba24b3ef23b8972a6c238bd300abef532da.tar.xz |
rtc: bq32k: Fix handling of oscillator failure flag
While the oscillator failure flag is set, the RTC registers
should be considered invalid. bq32k_rtc_read_time() now
returns an error instead of an invalid time.
The failure flag is cleared the next time the clock is set.
Signed-off-by: Jan Östlund <jao@hms.se>
Signed-off-by: Daniel Romell <daro@hms.se>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-pic32.c')
0 files changed, 0 insertions, 0 deletions