]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
rtc: pl030: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 6 Mar 2020 00:57:28 +0000 (01:57 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 16 Mar 2020 10:12:09 +0000 (11:12 +0100)
This RTC is a 32bit seconds counter.

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

index d4a5f8afafbcf0e4de1e11829fb2107c87121d0b..30aa813f96c0af5f1e0442bce281f5c206dd8e03 100644 (file)
@@ -116,6 +116,7 @@ static int pl030_probe(struct amba_device *dev, const struct amba_id *id)
        }
 
        rtc->rtc->ops = &pl030_ops;
+       rtc->rtc->range_max = U32_MAX;
        rtc->base = ioremap(dev->res.start, resource_size(&dev->res));
        if (!rtc->base) {
                ret = -ENOMEM;