public inbox for linux-rtc@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 6.15.y 0/2] rtc: backport support for handling dates before 1970
@ 2025-06-06 15:44 Uwe Kleine-König
  2025-06-06 15:44 ` [PATCH 6.15.y 1/2] rtc: Make rtc_time64_to_tm() support " Uwe Kleine-König
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2025-06-06 15:44 UTC (permalink / raw)
  To: Alessandro Zummo, Alexandre Belloni, Alexandre Mergnat; +Cc: linux-rtc, stable

Hello,

as described in the commit log of the two commits the rtc-mt6397 driver
relies on these fixes as soon as it should store dates later than
2027-12-31. On one of the patches has a Fixes line, so this submission
is done to ensure that both patches are backported.

The patches sent in reply to this mail are (trivial) backports to
v6.15.1, they should get backported to the older stable kernels, too, to
(somewhat) ensure that in 2028 no surprises happen. `git am` is able to
apply the patches as is to 6.14.y, 6.12.y, 6.6.y, 6.1.y and 5.15.y.

5.10 and 5.4 need an adaption, I didn't look into that yet but can
follow up with backports for these.

The two fixes were accompanied by 3 test updates:

	46351921cbe1 ("rtc: test: Emit the seconds-since-1970 value instead of days-since-1970")
	da62b49830f8 ("rtc: test: Also test time and wday outcome of rtc_time64_to_tm()")
	ccb2dba3c19f ("rtc: test: Test date conversion for dates starting in 1900")

that cover one of the patches. Would you consider it sensible to
backport these, too?

Best regards
Uwe


Alexandre Mergnat (2):
  rtc: Make rtc_time64_to_tm() support dates before 1970
  rtc: Fix offset calculation for .start_secs < 0

 drivers/rtc/class.c |  2 +-
 drivers/rtc/lib.c   | 24 +++++++++++++++++++-----
 2 files changed, 20 insertions(+), 6 deletions(-)


base-commit: 3ef49626da6dd67013fc2cf0a4e4c9e158bb59f7
-- 
2.47.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-06-07  7:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-06 15:44 [PATCH 6.15.y 0/2] rtc: backport support for handling dates before 1970 Uwe Kleine-König
2025-06-06 15:44 ` [PATCH 6.15.y 1/2] rtc: Make rtc_time64_to_tm() support " Uwe Kleine-König
2025-06-06 15:44 ` [PATCH 6.15.y 2/2] rtc: Fix offset calculation for .start_secs < 0 Uwe Kleine-König
2025-06-07  7:09 ` [PATCH 6.15.y 0/2] rtc: backport support for handling dates before 1970 Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox