Skip to content
Commit 03cc1625 authored by Adam Ward's avatar Adam Ward Committed by Linus Torvalds
Browse files

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: default avatarAdam Ward <adam.ward.opensource@diasemi.com>
Tested-by: default avatarAdam Ward <adam.ward.opensource@diasemi.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 52ef84d5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment