All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] rtc: make st-lpc robust against y2038/2106 bug
@ 2017-06-19  9:36 ` Benjamin Gaignard
  0 siblings, 0 replies; 25+ messages in thread
From: Benjamin Gaignard @ 2017-06-19  9:36 UTC (permalink / raw)
  To: john.stultz, tglx, sboyd, shuah, linux-kernel, linux-kselftest,
	patrice.chotard, a.zummo, alexandre.belloni, linux-arm-kernel,
	rtc-linux
  Cc: linaro-kernel, Benjamin Gaignard

On 32bits platforms "struct timeval" or "time_t" are using u32 to code the
date, this cause tools like "date" or "hwclock" failed even before setting
the RTC device if the date is superior to year 2038 (or 2106).

To avoid this problem I add one RTC test file which directly use RTC ioctl
to set and read RTC time and alarm values.
rtctest_setdate allow to set any date/time given in the command line.

On this version 2 I add check of problematics years in rtctest like suggest
by Alexandre.

Finally that had allowed me to test and fix rtc-st-lpc driver.

Benjamin Gaignard (3):
  tools: timer: add rtctest_setdate
  tool: timer: rtctest add check for problematic dates
  rtc: st-lpc: make it robust against y2038/2106 bug

 drivers/rtc/rtc-st-lpc.c                         |  19 ++--
 tools/testing/selftests/timers/Makefile          |   2 +-
 tools/testing/selftests/timers/rtctest.c         | 121 ++++++++++++++++++++++-
 tools/testing/selftests/timers/rtctest_setdate.c |  86 ++++++++++++++++
 4 files changed, 212 insertions(+), 16 deletions(-)
 create mode 100644 tools/testing/selftests/timers/rtctest_setdate.c

-- 
1.9.1

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

end of thread, other threads:[~2017-07-09 20:33 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-19  9:36 [PATCH v2 0/3] rtc: make st-lpc robust against y2038/2106 bug Benjamin Gaignard
2017-06-19  9:36 ` Benjamin Gaignard
2017-06-19  9:36 ` [rtc-linux] " Benjamin Gaignard
2017-06-19  9:36 ` [PATCH v2 1/3] tools: timer: add rtctest_setdate Benjamin Gaignard
2017-06-19  9:36   ` Benjamin Gaignard
2017-06-19  9:36   ` [rtc-linux] " Benjamin Gaignard
2017-06-19  9:36 ` [PATCH v2 2/3] tool: timer: rtctest add check for problematic dates Benjamin Gaignard
2017-06-19  9:36   ` Benjamin Gaignard
2017-06-19  9:36 ` [PATCH v2 3/3] rtc: st-lpc: make it robust against y2038/2106 bug Benjamin Gaignard
2017-06-19  9:36   ` Benjamin Gaignard
2017-06-23 19:40 ` [PATCH v2 0/3] rtc: make st-lpc " Shuah Khan
2017-06-23 19:40   ` Shuah Khan
2017-06-23 19:40   ` [rtc-linux] " Shuah Khan
2017-06-23 22:09   ` Alexandre Belloni
2017-06-23 22:09     ` Alexandre Belloni
2017-06-23 22:09     ` [rtc-linux] " Alexandre Belloni
2017-06-23 22:34     ` Shuah Khan
2017-06-23 22:34       ` Shuah Khan
2017-06-23 22:34       ` [rtc-linux] " Shuah Khan
2017-07-04 11:51       ` Benjamin Gaignard
2017-07-04 11:51         ` Benjamin Gaignard
2017-07-04 11:51         ` [rtc-linux] " Benjamin Gaignard
2017-07-09 20:33 ` Alexandre Belloni
2017-07-09 20:33   ` Alexandre Belloni
2017-07-09 20:33   ` [rtc-linux] " Alexandre Belloni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.