[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <174881605610.460021.11978572391323956698.b4-ty@bootlin.com>
Date: Mon, 2 Jun 2025 00:14:34 +0200
From: Alexandre Belloni <alexandre.belloni@...tlin.com>
To: Baolin Wang <baolin.wang@...ux.alibaba.com>,
Alexandre Mergnat <amergnat@...libre.com>
Cc: Uwe Kleine-König <u.kleine-koenig@...libre.com>,
linux-rtc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 0/5] Fix pre-1970 date handling
On Mon, 28 Apr 2025 12:06:46 +0200, Alexandre Mergnat wrote:
> This series fixes pre-1970 date handling in the RTC subsystem. The changes
> are particularly important for MediaTek platforms using the rtc-mt6397
> driver, which can only store dates from 1900-01-01 to 2027-12-31.
>
> The handling of pre-1970 dates in time conversion functions is improved, which
> is essential for hardware that must reuse earlier dates once their native format
> limits are reached. Sign-related comparison issues causing incorrect offset
> calculations are fixed, and the test infrastructure is enhanced to validate time
> conversions across the entire date range.
>
> [...]
Applied, thanks!
[1/5] rtc: Make rtc_time64_to_tm() support dates before 1970
https://git.kernel.org/abelloni/c/7df4cfef8b35
[2/5] rtc: Fix offset calculation for .start_secs < 0
https://git.kernel.org/abelloni/c/fe9f5f96cfe8
[3/5] rtc: test: Emit the seconds-since-1970 value instead of days-since-1970
https://git.kernel.org/abelloni/c/46351921cbe1
[4/5] rtc: test: Also test time and wday outcome of rtc_time64_to_tm()
https://git.kernel.org/abelloni/c/da62b49830f8
[5/5] rtc: test: Test date conversion for dates starting in 1900
https://git.kernel.org/abelloni/c/ccb2dba3c19f
Best regards,
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Powered by blists - more mailing lists