Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2048878pxk; Sat, 5 Sep 2020 06:55:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2Nyb0otYZnRd5DpndE8Kxpun84dRDBVmXb9ZNd3IxuH9UmETZLAaBc4pgP2T5Orju9L2L X-Received: by 2002:a50:84e8:: with SMTP id 95mr13241116edq.99.1599314104582; Sat, 05 Sep 2020 06:55:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599314104; cv=none; d=google.com; s=arc-20160816; b=prTbcEaY1btwqZVXEZHxh8eUxmzLZnyJJwifsRPQteRggzr/SbQHR1iNqOmm+Hl65y 5cKRZkoAlqUijsXV/SrKyAfiHrKdXHdMO0eOzL+JCgwHCICL/bZhHrCd+lYikfJpZiP7 oiazjRC02s118MKURae/B92jv6ML4nAXn8193+g9HXF/kLChl/hjIptmeqRwFtquXKCg ktoJFhLnrm0NVEqqF/eiJt49hQmPIC+6pmGbUklwwuOX1MBwHs8/KbkXP3L/3lBvUub7 zortyOt1N1oKMl8W4iSoBKypb2sd/mU6RR44yKCWNk6bZcn5JK1rOSC3NnxBVZ169c+D yveQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bVZCPKltkSjy2bGpkXBKtcO1Vq1BI03YXOXD8Xvd0mY=; b=NP17uv9hlLnClnsf7QNSUt3UA6USOzL8MD2ouIJYbnpcfTeoDGwh9OrYCM3GbSEJdG mEowg/8aCumoRQl7lS1HLCPKdE5OpVM5rj3igmhaWRQgo+R8epMMs9hTrWHGtCtZ48Ye anMxrkT9s2eusrbvIH2OCHCZs7SJWsuqG+xnQagpKTIPyG0viYLYIraCnkM8zngYCCQL ktit8ahVIRSBujBiGmAbk3x3PE9kbJq12kn4IcnXeTL9FhfpxzxFO8z0Qa2R3owpBHhl yahd88vFAlnpzqzttwRf6xjhBy9/9XSqhpKiwlAshxakL+B6oHkg7Pnl4IKT8/bbLZpg Uolg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=QE1RAvNc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v10si6048276eds.459.2020.09.05.06.54.41; Sat, 05 Sep 2020 06:55:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=QE1RAvNc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728596AbgIENyA (ORCPT + 99 others); Sat, 5 Sep 2020 09:54:00 -0400 Received: from mout.gmx.net ([212.227.17.20]:44717 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728616AbgIENgZ (ORCPT ); Sat, 5 Sep 2020 09:36:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599312926; bh=5W5bgNq9LYqoutaDK2rdA3mh9k/FJm8P+tiRpaZx/oU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=QE1RAvNcsKuOzWHvtSCwY8f+5D7QfHAziYrgkJQoekPhVEFjQDihltHUXpSnjw5nM tZVqTltohz0fuTEHEuaFTDRDd7SwJLI+tz6f0wOCBwNJg63/ARJuX9WDDAeSNh4zfC EbWa0/1oJLt/Hyvzn5xbJIjNappCqbZDLyFrbfMw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([5.146.195.151]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MgesG-1kmV7K1v7E-00h63K; Sat, 05 Sep 2020 15:35:26 +0200 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= To: linux-kernel@vger.kernel.org Cc: Lee Jones , Rob Herring , =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Alessandro Zummo , Alexandre Belloni , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Sam Ravnborg , Linus Walleij , Heiko Stuebner , Stephan Gerhold , Lubomir Rintel , Mark Brown , allen , Mauro Carvalho Chehab , "David S. Miller" , devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Heiko Stuebner , Josua Mayer , Andreas Kemnade , Arnd Bergmann , Daniel Palmer Subject: [PATCH v2 07/10] rtc: Introduce RTC_TIMESTAMP_END_2255 Date: Sat, 5 Sep 2020 15:32:27 +0200 Message-Id: <20200905133230.1014581-8-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200905133230.1014581-1-j.neuschaefer@gmx.net> References: <20200905133230.1014581-1-j.neuschaefer@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:gdbZilmswnyaFo9HLwRIhQfH6ZnJNWEaZw34e8xYCo5CcoTu6Vj f4r7gD746AQYDN3lxm1zljlQC1wQzBfzwb31hL0i8/XNRcXOX+1dLuuh2TAmZYO7Qkh1245 8iXnpFze3eZKkxM4Qvekt7VthPmkb5HFVShC3zPEHqKTebboy8NyKLexLtjw/h6PYd66bWq y7rTxCB8v+jALVbVAUY3A== X-Spam-Flag: NO X-UI-Out-Filterresults: notj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7bzbevSD/+rm+nMOFGKgS6sEBvpXQrIrCaL1hx4EmU0je6dfjoVOn3Cs0BtKxITiHY fb9sTGbWlreupiGybAVeE7CRfr/NJrDtUw5KVYv+VThHePt4Bqankm8UYvzpUZ+/sL+gVgmo9 gD//aqkpcS4zYljM0auiePsqYBTIcnu/LxAaY/J3dE8U7SH3BjJGELqJrcriO8KmE20PkQQSZ xCcnWx7Ab9DuNLppmxShuYb3rHkUta3tggBSIkA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some RTCs store the year as an 8-bit number relative to the year 2000. This results in a maximum timestamp of 2255-12-31 23:59:59. Signed-off-by: Jonathan Neusch=C3=A4fer =2D-- v2: - New patch =2D-- include/linux/rtc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/rtc.h b/include/linux/rtc.h index 22d1575e4991b..fcc086084a603 100644 =2D-- a/include/linux/rtc.h +++ b/include/linux/rtc.h @@ -154,6 +154,7 @@ struct rtc_device { #define RTC_TIMESTAMP_END_2079 3471292799LL /* 2079-12-31 23:59:59 */ #define RTC_TIMESTAMP_END_2099 4102444799LL /* 2099-12-31 23:59:59 */ #define RTC_TIMESTAMP_END_2199 7258118399LL /* 2199-12-31 23:59:59 */ +#define RTC_TIMESTAMP_END_2255 9025257599LL /* 2255-12-31 23:59:59 */ #define RTC_TIMESTAMP_END_9999 253402300799LL /* 9999-12-31 23:59:59 */ extern struct rtc_device *devm_rtc_device_register(struct device *dev, =2D- 2.28.0