[PATCH v2] rtc: rs5c372: Fix reading from rtc when the oscillator got interrupted.

2019-02-08 Thread Oliver.Rohe
When the oscillator of the rtc gets interrupted, e.g. due to an empty battery, reading from the rtc will now return an error and the oscillator bit will be cleared, once the rtc is successfully reset. Signed-off-by: Oliver Rohe --- drivers/rtc/rtc-rs5c372.c | 54 +

Re: [PATCH] rtc: rs5c372: Fix reading from rtc when the oscillator got interrupted.

2019-02-05 Thread Oliver.Rohe
Hi Alexandre, thanks a lot!! On 05.02.19 22:55, Alexandre Belloni wrote: > Hi, > > On 11/01/2019 13:15:39+, oliver.r...@wago.com wrote: >> When the oscillator of the rtc gets interrupted, >> e.g. due to an empty battery, reading from the rtc will now return an error >> and the oscillator bit

[PATCH] rtc: rs5c372: Fix reading from rtc when the oscillator got interrupted.

2019-01-11 Thread Oliver.Rohe
When the oscillator of the rtc gets interrupted, e.g. due to an empty battery, reading from the rtc will now return an error and the oscillator bit will be cleared, once the rtc is successfully reset. Signed-off-by: Oliver Rohe --- drivers/rtc/rtc-rs5c372.c | 60 +

Re: [PATCH] rtc: rs5c372: r2221: fix to use the correct XSTP bit

2019-01-11 Thread Oliver.Rohe
Hi Alexandre, On 11.01.19 11:05, Alexandre Belloni wrote: > Hello, > > On 09/01/2019 10:59:40+, oliver.r...@wago.com wrote: >> The Ricoh chips have slightly different register layouts >> and the r2221 chip uses bit 5 as the oscillator halt sensor bit. >> >> Signed-off-by: Olive Rohe >> --- >

[PATCH] rtc: rs5c372: r2221: fix to use the correct XSTP bit

2019-01-09 Thread Oliver.Rohe
The Ricoh chips have slightly different register layouts and the r2221 chip uses bit 5 as the oscillator halt sensor bit. Signed-off-by: Olive Rohe --- drivers/rtc/rtc-rs5c372.c | 32 +--- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/drivers/rtc/rtc