]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/rtc/rtc-rx8581.c: fix setdatetime
authorRudolf Marek <rudolf.marek@sysgo.com>
Tue, 27 Jul 2010 20:18:02 +0000 (13:18 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 27 Jul 2010 21:32:06 +0000 (14:32 -0700)
commitf4c1b4adb5dfdd4c203c9295a152910463302edb
tree9382e655a17b7be04178b0fa0d6978f88fd8ecb6
parentdf881feba8111520a69c39826c3a9d14c83c80bd
drivers/rtc/rtc-rx8581.c: fix setdatetime

Fix the logic while writing new date/time to the chip.  The driver
incorrectly wrote back register values to different registers and even
with wrong mask.  The patch adds clearing of the VLF register, which
should be cleared if all date/time values are set.

Signed-off-by: Rudolf Marek <rudolf.marek@sysgo.com>
Acked-by: Wan ZongShun <mcuos.com@gmail.com>
Cc: Martyn Welch <martyn.welch@gefanuc.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-rx8581.c