Files
android_kernel_xiaomi_sm8450/drivers/rtc
Denis Osterland 5b9fc795f9 rtc: isl1208: Fix unintended clear of SR bits
After successful
sr = isl1208_i2c_set_regs(client, 0, regs, ISL1208_RTC_SECTION_LEN);
sr will be 0.
As a result
sr = i2c_smbus_write_byte_data(client, ISL1208_REG_SR,
			sr & ~ISL1208_REG_SR_WRTC);
is equal to
sr = i2c_smbus_write_byte_data(client, ISL1208_REG_SR, 0);
which clears all flags in SR.

Add an additional read of SR, to have value of SR in sr again.

Signed-off-by: Denis Osterland <Denis.Osterland@diehl.com>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2018-03-01 10:49:36 +01:00
..
2018-03-01 10:49:23 +01:00
2018-03-01 10:49:34 +01:00
2018-01-19 09:59:32 +01:00
2017-10-13 00:10:12 +02:00
2017-03-09 01:29:17 +01:00
2018-03-01 10:49:29 +01:00
2016-05-20 12:33:51 +02:00
2018-03-01 10:49:25 +01:00
2018-03-01 10:49:28 +01:00
2017-09-01 01:10:11 +02:00
2018-03-01 10:49:30 +01:00
2017-09-01 01:10:11 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2015-09-05 13:19:06 +02:00
2016-05-20 12:33:51 +02:00
2018-03-01 10:49:26 +01:00
2017-09-01 01:10:11 +02:00
2017-01-11 17:23:04 +01:00
2017-08-22 12:05:21 +02:00
2018-03-01 10:49:31 +01:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2017-09-05 09:55:02 +02:00
2013-04-19 13:51:25 +02:00
2017-07-31 00:17:44 +02:00
2017-08-24 11:03:35 +02:00
2017-04-22 18:01:15 +02:00
2017-11-29 22:20:56 +01:00
2018-03-01 10:49:35 +01:00
2017-08-24 11:03:36 +02:00
2016-05-20 12:33:51 +02:00