commit | 421a5ba24b3ef23b8972a6c238bd300abef532da | [log] [tgz] |
---|---|---|
author | Jan Östlund <jao@hms.se> | Thu Aug 11 13:31:44 2016 +0200 |
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | Wed Aug 31 18:21:35 2016 +0200 |
tree | 0b620b64c90e540777d555411e0790d10f9ed6ed | |
parent | 6ed1a51e0b8a981ab0540117f0c47c1f11fca5fa [diff] |
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>