]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/rtc/rtc-mpc5121.c
rtc: mpc5121: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 6 Mar 2020 07:44:02 +0000 (08:44 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 16 Mar 2020 10:12:10 +0000 (11:12 +0100)
commit3905d1c02dc9dd0b498567f52380bcd9ce6420af
tree5e277092cf99f7124c8de1feae78b00877ce8fdd
parentfffbe10e2fd3a92a401cbcbb77da7f67fe900eeb
rtc: mpc5121: set range

The datasheet states that 4052 is the maximum value for year. However, the
mpc5121 read_time and set_time function abuse the target time register
instead of using the broken down time so it is limited to 2106.

Link: https://lore.kernel.org/r/20200306074404.58909-3-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-mpc5121.c