summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-dev.c
diff options
context:
space:
mode:
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>2010-06-30 00:05:34 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-06-30 00:29:31 +0200
commit96fc3a45ea073136566f3c2676cad52f8b39a7df (patch)
treece7d4a880f7ed5ec64f515e7d100aa473c088678 /drivers/rtc/rtc-dev.c
parentMAINTAINERS: some Atmel drivers change maintainer (diff)
downloadlinux-96fc3a45ea073136566f3c2676cad52f8b39a7df.tar.xz
linux-96fc3a45ea073136566f3c2676cad52f8b39a7df.zip
rtc: fix ds1388 time corruption
The ds1307 driver misreads the ds1388 registers when checking for 12 or 24 hour mode. Instead of checking the hour register it reads the minute register. Therefore the driver thinks minutes >= 40 has the 12HR bit set and resets the minute register by zeroing the high bits. This results in minutes are reset to 0-9, jumping back in time 40 or 50 minutes. The time jump is also written back to the RTC. Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se> Cc: Wan ZongShun <mcuos.com@gmail.com> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Paul Gortmaker <p_gortmaker@yahoo.com> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-dev.c')
0 files changed, 0 insertions, 0 deletions