Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752175AbdFTNhi convert rfc822-to-8bit (ORCPT ); Tue, 20 Jun 2017 09:37:38 -0400 Received: from mail1.bemta5.messagelabs.com ([195.245.231.143]:61792 "EHLO mail1.bemta5.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751101AbdFTNhe (ORCPT ); Tue, 20 Jun 2017 09:37:34 -0400 X-Brightmail-Tracker: H4sIAAAAAAAAA1WTb0wbZRzHfe6u11vDLUfp7LMqI3SSbLpWqiE +2Rs1+uIhnWTJ1DBiptd50pq24F1ZyisLmwa2dA4tSzx1K1tnSRGDXXDCIJLLnA4YCLga5/7S jv2HZSO44WRee2zi8+rz/L7P9/f9vfg9DGmcpy2MEAwIop/3WmkDtaXn0PO2gpLyzaV75+woN nZKj37uCtGoKXWQQBklTKL21A0KNSqDNEp+fBOghtgEhYb/tqEd8gEKyZF+As0oUySK3I8TKJ lO6dBE75c0uhM+BlDzrEyj7mQ/iVoSnTQaH4gS6Hj0cRS/+YBGZwd/otHw0LgO/djcBNDMvZf Rp4qIDidbSXSvdx+F/kpPEejB/Hb1qowS6G5XWvdSMZbPn6Rx12SHDmeSYwD3yGf1uK/lBI0v 7flMjw/2XSVwMtFM49DAKIXPpPpoPD0yoseHYx/iPxfSJD4avUPghbYIhcPbp+mN5iqdx++qC b6jc//+1YbafkPwYuRXOgS+Y3YCA2PkDgGotE6BnWAZQ3MOuO/GTI5NXBXs3DFMZJnk4nmw+9 aWLBdwr8Arc92Lb16FjeEmSuMKeKG1Q59liiuBPV+055jlNsLIRIbQwi4AeHz3yZx5GbcWJjK NuQDAFcLZhg5SCzPD05n9uTrkOBjrGyU1XgGvphd0GhfBzvnMYv1FeP3ctDoEo/KzcHeDpJUd MLF3YLH8Avzj2+Va93UwevQ2rfEz8Ou266Q2Zj488XmG2gPM8pIh5CUWeYlFXmKJAioB1kiCu E0QbY4yu0v0VLsDPt7jtTlKy+w+QZL4asHLuyT71hpfEqg7+Zh6fgChI+UKWMkQ1hWsc3X5Zu NyV8279W5ecr8t1nkFSQFPMowVsnNZLV8UqoXgex6vutgPZcjkWU1sc6Eqs1It75M81Zo0CIo tZrb4KVXgsoK7zv/I9vBLjINCSwEL1EGMebWC6PME/q9fA2YGWAvYc9n0PI8/8Kj7NTWYUIOv HMPZ4AD/n2QJgfZvKGNZZfCTinCpMru+Zv0Z367e1444q6h/xPa6/AMGC1u19a5rQ7mpqNKxa lf97dMw9lbm8tDKiiL7pbVvTJate3O4Mr6pfk3/yK3aVV3k4P33SUdjW9wZsxGGko/8+1/3XV 59sb7F9H1sbG4an982mTrlfOI5z28fOE3dDUNTv1gpyc07niZFif8XcXpYsg0EAAA= X-Env-Sender: stwiss.opensource@diasemi.com X-Msg-Ref: server-9.tower-178.messagelabs.com!1497965843!107032743!1 X-Originating-IP: [94.185.165.51] X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked From: Steve Twiss To: Pavel Machek , Alexandre Belloni CC: Benjamin Gaignard , "linaro-kernel@lists.linaro.org" , "adi-buildroot-devel@lists.sourceforge.net" , Alessandro Zummo , Gregory Clement , Ingo Molnar , Jason Cooper , "John Stultz" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Linus Walleij , Michael Chan , "netdev@vger.kernel.org" , "rtc-linux@googlegroups.com" , Sebastian Hesselbarth , Support Opensource , Thomas Gleixner , "x86@kernel.org" , Baruch Siach , "Hans Ulli Kroll" , Vladimir Zapolskiy , Sylvain Lemieux , Barry Song , Maxime Ripard , Chen-Yu Tsai , Thierry Reding , Jonathan Hunter , "linux-tegra@vger.kernel.org" , "patches@opensource.wolfsonmicro.com" , "Rafael J. Wysocki" , Len Brown , "linux-pm@vger.kernel.org" Subject: RE: [PATCH 00/51] rtc: stop using rtc deprecated functions Thread-Topic: [PATCH 00/51] rtc: stop using rtc deprecated functions Thread-Index: AQHS6ajI/fXR4JOeI0yLb/LhtQtZpqItdO8AgAAjUICAAAPcAIAAEWsAgAATfJA= Date: Tue, 20 Jun 2017 13:37:22 +0000 Message-ID: <6ED8E3B22081A4459DAC7699F3695FB7018CD96FCD@SW-EX-MBX02.diasemi.com> References: <1497951359-13334-1-git-send-email-benjamin.gaignard@linaro.org> <20170620100348.zh4ygvjjgnhxvmvl@piout.net> <20170620121011.GA13221@amd> <20170620122400.sm7qqvwyj6cuzarw@piout.net> <20170620132620.GA16881@amd> In-Reply-To: <20170620132620.GA16881@amd> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.20.26.77] x-kse-attachmentfiltering-interceptor-info: protection disabled x-kse-serverinfo: sw-ex-cashub01.diasemi.com, 9 x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: Clean, bases: 20/06/2017 12:02:00 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1332 Lines: 34 Hi Pavel, On 20 June 2017 14:26, Pavel Machek wrote: > 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 Belloni wrote: > > > > On 20/06/2017 at 11:35:08 +0200, Benjamin Gaignard wrote: > > > > > 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. > > > > > > > > Please don't, because this hide the fact that the hardware will not > > > > handle dates in y2038 anyway and as pointed by Russell a few month ago, > > > > rtc_time_to_tm will be able to catch it but the 64 bit version will > > > > silently ignore it. > > > > > > Reference? Because rtc on PCs stores date in binary coded decimal, so > > > it is likely to break in 2100, not 2038... > > > > I'm not saying it should be done but clearly, that is not the correct > > thing to do for RTCs that are using a single 32 bits register to store > > the time. > > You give one example, I can give you three: armada38x, at91sam9, > > at32ap700x and that just in the beginning of the series. > > I wanted reference to Russell's mail. This is it. https://patchwork.kernel.org/patch/6219401/ Regards, Steve