Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rtc: spear: set range

While the RTC can store dates from year 0000 to 9999, leap years where not
tested fro 2100. The driver currently stores tm_year directly which will
probably fail at that time or more probably in 2300.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20220309162301.61679-19-alexandre.belloni@bootlin.com

+2
+2
drivers/rtc/rtc-spear.c
··· 385 385 platform_set_drvdata(pdev, config); 386 386 387 387 config->rtc->ops = &spear_rtc_ops; 388 + config->rtc->range_min = RTC_TIMESTAMP_BEGIN_0000; 389 + config->rtc->range_min = RTC_TIMESTAMP_END_9999; 388 390 config->rtc->uie_unsupported = 1; 389 391 390 392 status = devm_rtc_register_device(config->rtc);