Thomas VanSelus 066ed42712 misc: ds1682: Ignore update-in-progress ETC reads
The Elapsed Time Counter (ETC) registers are not buffered for reading.
If a 250ms tick occurs while data is being read out, the result can be
a combination of old and new values. This can occur at the byte level
(giving a time in the future) or the individual bit level (giving a
time in the past). We catch both these cases by reading until we get
two equal or consecutive values. After five unsuccessful attempts we
give up.

Signed-off-by: Thomas VanSelus <tvanselus@xes-inc.com>
Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-09 17:03:57 +01:00
..
2017-11-15 18:21:04 -08:00
2017-12-01 08:40:17 -05:00
2018-01-02 14:46:35 +01:00
2017-12-18 15:59:18 +01:00
2017-08-28 16:55:48 +02:00
2017-11-17 16:10:01 -08:00
2017-11-28 16:33:03 +01:00
2017-11-13 20:53:28 -08:00