drivers/rtc/rtc-da9052.c: add extra reads with timeouts to avoid returning partially...
authorAdam Ward <adam.ward.opensource@diasemi.com>
Thu, 16 Apr 2015 19:45:26 +0000 (12:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
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 <adam.ward.opensource@diasemi.com>
Tested-by: Adam Ward <adam.ward.opensource@diasemi.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-da9052.c