drivers/rtc/rtc-da9052.c: add extra reads with timeouts to avoid returning partially...
authorAdam Ward <[email protected]>
Thu, 16 Apr 2015 19:45:26 +0000 (12:45 -0700)
committerLinus Torvalds <[email protected]>
Fri, 17 Apr 2015 13:04:00 +0000 (09:04 -0400)
commit03cc1625e1f2e9fc6910af4174c942d56292f556
treecab9d331c2d2d16be6e360bf70d2a5255f51adf5
parent52ef84d566dc145b4d469f06667c5fa3118fdd44
drivers/rtc/rtc-da9052.c: add extra reads with timeouts to avoid returning partially updated values

The RTC is in a different clock domain so a quick read after write
can retrieve a mangled value of the old/new values

Signed-off-by: Adam Ward <[email protected]>
Tested-by: Adam Ward <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/rtc/rtc-da9052.c