Thomas Bogendoerfer 9f8010e71f rtc: ds1685: Fix bank switching to avoid endless loop
ds1685_rtc_begin_data_access() tried to access an extended register before
enabling access to it by switching to bank 1. Depending on content in NVRAM
this could lead to an endless loop. While at it fix also switch back to
bank 0 in ds1685_rtc_end_data_access().

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Joshua Kinard <kumba@gentoo.org>
Link: https://lore.kernel.org/r/20200910084124.138560-1-tsbogend@alpha.franken.de
2020-09-15 11:24:29 +02:00
..
2020-08-12 17:17:00 -07:00
2020-07-01 12:10:59 +03:00
2020-07-02 22:32:00 +02:00
2020-07-21 09:56:46 +02:00
2019-11-08 16:14:09 +01:00
2019-07-17 10:03:50 -07:00
2020-07-02 22:32:01 +02:00
2019-11-08 16:14:09 +01:00
2019-12-03 13:31:08 -08:00
2020-08-12 11:48:29 +02:00
2019-12-23 11:23:53 +01:00
2019-04-04 10:07:10 +02:00
2019-10-19 22:33:05 +02:00
2019-11-08 16:14:09 +01:00
2020-09-15 11:21:50 +02:00
2019-05-23 17:44:52 +02:00
2020-03-16 11:12:08 +01:00
2019-05-08 22:14:36 +02:00