]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: m41t80: fix SQW dividers override when setting a date
authorGary Bisson <gary.bisson@boundarydevices.com>
Tue, 25 Apr 2017 14:45:15 +0000 (16:45 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 31 May 2017 07:17:03 +0000 (09:17 +0200)
commit0f546b058b86ea2f661cc7a6e931cee5a29959ef
tree3dc648d773d83e9881b46d910e56d7d7a8c356c5
parent2de9261c18c2b09a8025872bb470853dc8db726c
rtc: m41t80: fix SQW dividers override when setting a date

This patch is only relevant for RTC with the SQ_ALT feature which
means the clock output frequency divider is stored in the weekday
register.

Current implementation discards the previous dividers value and clear
them as soon as the time is set.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-m41t80.c