summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/Kconfig
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2015-04-16 12:46:00 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-17 09:04:02 -0400
commit9c28bd07c20776cc04aecf04ba5be53fa5fa6dd2 (patch)
treeced223cfa0ce952613d5bb40b5879d414c0cc349 /drivers/rtc/Kconfig
parent202fe4c27f427c48ca5660277d743ee8b43fc200 (diff)
downloadblackbird-obmc-linux-9c28bd07c20776cc04aecf04ba5be53fa5fa6dd2.tar.gz
blackbird-obmc-linux-9c28bd07c20776cc04aecf04ba5be53fa5fa6dd2.zip
drivers/rtc/rtc-omap.c: unlock and lock rtc registers before and after register writes
RTC module contains a kicker mechanism to prevent any spurious writes from changing the register values. This mechanism requires two MMR writes to the KICK0 and KICK1 registers with exact data values before the kicker lock mechanism is released. Currently the driver release the lock in the probe and leaves it enabled until the rtc driver removal. This eliminates the idea of preventing spurious writes when RTC driver is loaded. So implement rtc lock and unlock functions before and after register writes. This is as advised by Paul to implement lock and unlock functions in the driver and not to unlock and leave it in probe. The same discussion can be seen here: http://www.mail-archive.com/linux-omap%40vger.kernel.org/msg111588.html Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Paul Walmsley <paul@pwsan.com> Cc: Tero Kristo <t-kristo@ti.com> Cc: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/Kconfig')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud