RE: [PATCH v2 2/2] rtc: bq32k: Fix handling of oscillator failure flag

2016-08-15 Thread Jan Östlund
; Magnus Olsson Subject: [PATCH v2 2/2] rtc: bq32k: Fix handling of oscillator failure flag From: Jan Östlund 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

[PATCH v2 2/2] rtc: bq32k: Fix handling of oscillator failure flag

2016-08-11 Thread Daniel Romell
From: Jan Östlund 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: Daniel Romell --- drivers/rtc/rtc-bq32k