Skip to content
Commit 2884fce1 authored by Rudolf Marek's avatar Rudolf Marek Committed by Linus Torvalds
Browse files

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: default avatarRudolf Marek <rudolf.marek@sysgo.com>
Acked-by: default avatarWan ZongShun <mcuos.com@gmail.com>
Cc: Martyn Welch <martyn.welch@gefanuc.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 b82bab4b
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