[rtc-linux] [PATCH v2 18/22] rtc: stk17ta8: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH v2 14/22] rtc: pcap: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. version 2: - fix compilation issues by using do_div() Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo

[rtc-linux] [PATCH v2 21/22] rtc: test: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
module parameter. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com CC: linux-ker...@vger.kernel.org --- drivers/rtc/rtc-test.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/rtc/rtc-test.c b

[rtc-linux] [PATCH v2 05/22] rtc: ab8500: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. version 2: - fix compilation issues by using do_div() Signed-off-by: Benjamin Gaignard Acked-by: Linus

[rtc-linux] [PATCH v2 20/22] rtc: sysfs: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH v2 08/22] rtc: ds1305: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH v2 11/22] rtc: gemini: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Hans Ulli Kroll CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc

[rtc-linux] [PATCH v2 17/22] rtc: snvs: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH v2 10/22] rtc: ds1553: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH v2 16/22] rtc: sh: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH v2 15/22] rtc: rs5c348: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH v2 09/22] rtc: ds1511: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH v2 22/22] power: suspend test: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard Acked-by: Pavel Machek CC: "Rafael J. Wysocki" CC: Pavel Mache

[rtc-linux] [PATCH v2 07/22] rtc: davinci: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH v2 12/22] rtc: mv: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH v2 13/22] rtc: omap: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[rtc-linux] [PATCH v2 06/22] rtc: cpcap: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. version 2: - fix compilation issues by using do_div() Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo

[rtc-linux] [PATCH v2 04/22] rtc: ab-b5ze-s3: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH v2 19/22] rtc: sun6i: stop using rtc deprecated functions

2017-07-12 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Maxime Ripard CC: Chen-Yu Tsai CC: Alessandro Zummo CC: Alexandre

[rtc-linux] Re: [PATCH v2 0/3] rtc: make st-lpc robust against y2038/2106 bug

2017-07-04 Thread Benjamin Gaignard
2017-06-24 0:34 GMT+02:00 Shuah Khan : > Hi Alexandre, > > On 06/23/2017 04:09 PM, Alexandre Belloni wrote: >> On 23/06/2017 at 13:40:41 -0600, Shuah Khan wrote: >>> On 06/19/2017 03:36 AM, Benjamin Gaignard wrote: >>>> On 32bits platforms "struct timev

[rtc-linux] Re: [PATCH 00/51] rtc: stop using rtc deprecated functions

2017-06-21 Thread Benjamin Gaignard
2017-06-21 0:08 GMT+02:00 Pavel Machek : > Hi! > >> >> > This is it. >> >> > https://patchwork.kernel.org/patch/6219401/ >> >> >> >> Thanks. >> >> >> >> Yes, that's argument against changing rtc _drivers_ for hardware that >> >> can not do better than 32bit. For generic code (such as 44/51 sysfs, >

[rtc-linux] Re: [PATCH 00/51] rtc: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
Subject: Re: [PATCH 00/51] rtc: stop using rtc deprecated functions >> > > >> > > On Tue 2017-06-20 14:24:00, Alexandre Belloni wrote: >> > > > On 20/06/2017 at 14:10:11 +0200, Pavel Machek wrote: >> > > > > On Tue 2017-06-20 12:03:48, Alexandre B

[rtc-linux] Re: [PATCH 14/51] rtc: da9063: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
2017-06-20 15:41 GMT+02:00 Steve Twiss : > Hi Benjamin, > > On 20 June 2017 10:35, Benjamin Gaignard wrote: > >> Subject: [PATCH 14/51] rtc: da9063: stop using rtc deprecated functions > > Probably this subject should be "rtc: da9052" not 63. yes you

[rtc-linux] [PATCH 46/51] rtc: test: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
module parameter. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com CC: linux-ker...@vger.kernel.org --- drivers/rtc/rtc-test.c | 17 + 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/rtc/rtc-test.c b

[rtc-linux] [PATCH 30/51] rtc: mv: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 39/51] rtc: sirfsoc: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: Barry Song CC: rtc-linux

[rtc-linux] [PATCH 27/51] rtc: imxdi: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[rtc-linux] [PATCH 47/51] rtc: tps6586: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 44/51] rtc: sysfs: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 40/51] rtc: snvs: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 35/51] rtc: pm8xxx: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 43/51] rtc: sun6i: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Maxime Ripard CC: Chen-Yu Tsai CC: Alessandro Zummo CC: Alexandre

[rtc-linux] [PATCH 50/51] rtc: xgene stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[rtc-linux] [PATCH 37/51] rtc: sa1100: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 41/51] rtc: stk17ta8: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 38/51] rtc: sh: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 34/51] rtc: pl031: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Linus Walleij CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc

[rtc-linux] [PATCH 49/51] rtc: wm831x: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[rtc-linux] [PATCH 45/51] rtc: tegra stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Thierry Reding CC: Jonathan Hunter CC: Alessandro Zummo CC

[rtc-linux] [PATCH 42/51] rtc: stmp3xxx: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[rtc-linux] [PATCH 36/51] rtc: rs5c348: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 32/51] rtc: pcap: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 28/51] rtc: jz4740: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[rtc-linux] [PATCH 31/51] rtc: omap: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[rtc-linux] [PATCH 51/51] power: suspend test: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: "Rafael J. Wysocki" CC: Pavel Machek CC: Len Brown CC:

[rtc-linux] [PATCH 48/51] rtc: vr41xx: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 29/51] rtc: lpc32xx: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[rtc-linux] [PATCH 33/51] rtc: pl030: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 23/51] rtc: ds1672: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[rtc-linux] [PATCH 11/51] rtc: bfin: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 26/51] rtc: gemini: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Hans Ulli Kroll CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc

[rtc-linux] [PATCH 20/51] rtc: ds1374: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 21/51] rtc: ds1511: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 22/51] rtc: ds1553: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 14/51] rtc: da9063: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Support Opensource CC: Alessandro Zummo CC: Alexandre Belloni CC

[rtc-linux] [PATCH 25/51] rtc: ep93xx: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[rtc-linux] [PATCH 10/51] rtc: at91sam9: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 24/51] rtc: ds2404: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. For the same reasons use set_mmss64 callback instead of set_mmss Signed-off-by: Benjamin Gaignard CC

[rtc-linux] [PATCH 15/51] rtc: da9063: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Support Opensource CC: Alessandro Zummo CC: Alexandre Belloni CC

[rtc-linux] [PATCH 09/51] rtc: at32ap700x: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 17/51] rtc: digicolor: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Baruch Siach CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc

[rtc-linux] [PATCH 16/51] rtc: davinci: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 07/51] rtc: ab8500: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Linus Walleij CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc

[rtc-linux] [PATCH 18/51] rtc: dm355evm: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 13/51] rtc: cpcap: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 05/51] rtc: 88pm860x: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 12/51] rtc: coh901331: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Linus Walleij CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc

[rtc-linux] [PATCH 19/51] rtc: ds1305: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 08/51] rtc: armada38x: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Jason Cooper CC: Gregory Clement CC: Sebastian Hesselbarth CC

[rtc-linux] [PATCH 04/51] rtc: 88pm80x: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 06/51] rtc: ab-b5ze-s3: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they rely on 32bits variables and that will make rtc break in y2038/2016. Stop using those two functions to safer 64bits ones. Signed-off-by: Benjamin Gaignard CC: Alessandro Zummo CC: Alexandre Belloni CC: rtc-linux@googlegroups.com

[rtc-linux] [PATCH 00/51] rtc: stop using rtc deprecated functions

2017-06-20 Thread Benjamin Gaignard
only check that the patches compile without warnings but it up to each maintainer to valid them on real hardware. Benjamin Gaignard (51): x86: rtc: stop using rtc deprecated functions x86: intel-mid: vrtc: stop using rtc deprecated functions net: broadcom: stop using rtc deprecated funct

[rtc-linux] [PATCH v2 0/3] rtc: make st-lpc robust against y2038/2106 bug

2017-06-19 Thread Benjamin Gaignard
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

[rtc-linux] [PATCH v2 3/3] rtc: st-lpc: make it robust against y2038/2106 bug

2017-06-19 Thread Benjamin Gaignard
Make driver use u64 variables and functions to be sure that it will support dates after year 2038. Signed-off-by: Benjamin Gaignard Acked-by: Patrice Chotard --- drivers/rtc/rtc-st-lpc.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/rtc/rtc-st

[rtc-linux] [PATCH v2 2/3] tool: timer: rtctest add check for problematic dates

2017-06-19 Thread Benjamin Gaignard
Some dates could be problematic because they reach the limits of RTC hardware capabilities. This patch add various of them but since it will change RTC date it will be activated only when 'd' args is set. Signed-off-by: Benjamin Gaignard --- tools/testing/selftests/timers/rtcte

[rtc-linux] [PATCH v2 1/3] tools: timer: add rtctest_setdate

2017-06-19 Thread Benjamin Gaignard
This tool allow to set directly the time and date to a RTC device. Unlike other tools isn't doens't use "struct timeval" or "time_t" so it is safe for 32bits platforms when testing for y2038/2106 bug. Signed-off-by: Benjamin Gaignard --- tools/testing/selftests

[rtc-linux] [PATCH 3/3] rtc: st-lpc: make it robust against y2038/2106 bug

2017-06-16 Thread Benjamin Gaignard
Make driver use u64 variables and functions to be sure that it will support dates after year 2038. Signed-off-by: Benjamin Gaignard --- drivers/rtc/rtc-st-lpc.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/rtc/rtc-st-lpc.c b/drivers/rtc/rtc-st

[rtc-linux] [PATCH 1/3] tools: timer: add rtctest_setdate

2017-06-16 Thread Benjamin Gaignard
This tool allow to set directly the time and date to a RTC device. Unlike other tools isn't doens't use "strut timeval" or "time_t" so it is safe for 32bits platforms when testing for y2038/2106 bug. Signed-off-by: Benjamin Gaignard --- tools/testing/selftests

[rtc-linux] [PATCH 0/3] rtc: make st-lpc robust against y2038/2106 bug

2017-06-16 Thread Benjamin Gaignard
wed me to test and fix rtc-st-lpc driver. Benjamin Gaignard (3): tools: timer: add rtctest_setdate tools: timer: add test to check y2038/2106 bug rtc: st-lpc: make it robust against y2038/2106 bug drivers/rtc/rtc-st-lpc.c | 19 ++-- tools/testing/selftests/timers/M

[rtc-linux] [PATCH 2/3] tools: timer: add test to check y2038/2106 bug

2017-06-16 Thread Benjamin Gaignard
The goal of this test is to check if a RTC device correctly support dates after years 2038 or 2106. It set a date (1-1-2200) on RTC and read it back to be sure that the driver is working well. The same thing is done on alarm. Signed-off-by: Benjamin Gaignard --- tools/testing/selftests/timers