aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-snvs.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-08-28 22:50:55 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-09-01 08:48:15 +0200
commit79610340cac8840ad67572ca13afae03265edae6 (patch)
tree2994cfecda3119ae521e6c23cafad7fe49bcf2de /drivers/rtc/rtc-snvs.c
parentrtc: snvs: fix possible race condition (diff)
downloadlinux-dev-79610340cac8840ad67572ca13afae03265edae6.tar.xz
linux-dev-79610340cac8840ad67572ca13afae03265edae6.zip
rtc: snvs: set range
The SNVS is a 47-bit counter incremented at 32768Hz, it is then a 32-bit second counter. Link: https://lore.kernel.org/r/20190828205056.31321-1-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-snvs.c')
-rw-r--r--drivers/rtc/rtc-snvs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c
index 4f9a107a0427..50dd4b8492eb 100644
--- a/drivers/rtc/rtc-snvs.c
+++ b/drivers/rtc/rtc-snvs.c
@@ -348,6 +348,7 @@ static int snvs_rtc_probe(struct platform_device *pdev)
}
data->rtc->ops = &snvs_rtc_ops;
+ data->rtc->range_max = U32_MAX;
ret = rtc_register_device(data->rtc);
if (ret) {
dev_err(&pdev->dev, "failed to register rtc: %d\n", ret);