diff options
author | Adam Ward <adam.ward.opensource@diasemi.com> | 2015-04-16 12:45:26 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 09:04:00 -0400 |
commit | 03cc1625e1f2e9fc6910af4174c942d56292f556 (patch) | |
tree | cab9d331c2d2d16be6e360bf70d2a5255f51adf5 /security | |
parent | 52ef84d566dc145b4d469f06667c5fa3118fdd44 (diff) | |
download | lwn-03cc1625e1f2e9fc6910af4174c942d56292f556.tar.gz lwn-03cc1625e1f2e9fc6910af4174c942d56292f556.zip |
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>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions