From patchwork Sat Sep 5 13:32:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 11759121 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B45F214F9 for ; Sat, 5 Sep 2020 13:36:19 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 720EA2072D for ; Sat, 5 Sep 2020 13:36:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="oOgEDXB7"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gmx.net header.i=@gmx.net header.b="QE1RAvNc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 720EA2072D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gmx.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5gTR+4oZ43kklPQPW4a3oenDRubHuGAzZq9clEjD0G8=; b=oOgEDXB7nkg7sFYv+ar4TigoA /s88WIeYief9nIgJC+375l3Ce2vcIpPAhyQZhrGUdMDrMTZnMF07zuiRKkxBrPGEXPc7vH5pCDLaq 5xw4LJUQHPPzs6ytqvAuc4L2N1PTmTdf1wZu39OHoWFmhSrmiGnDDCnz2+A4Pb/8q3tkfsKNjG1kR A1PJ6Izu0jmI6zs/BZJ7jNGcNmW3n4YqaLImv6Gp6mRKQf9whZAppN1a3AcwuKo0a3WaaV+ho+/rN eM5ANUwUf0h2YdRxGvz4UXbCYkCiTg5YTYQf9MN2zTRvr8mTWbSflU9XYO1OypjmkTcuqhPLLsMIz pP/XbNHDQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kEYMS-0006eb-O7; Sat, 05 Sep 2020 13:36:08 +0000 Received: from mout.gmx.net ([212.227.17.20]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kEYMQ-0006dJ-F9 for linux-arm-kernel@lists.infradead.org; Sat, 05 Sep 2020 13:36:07 +0000 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_Neusch=C3=A4fer?= To: linux-kernel@vger.kernel.org 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 X-Provags-ID: V03:K1:gdbZilmswnyaFo9HLwRIhQfH6ZnJNWEaZw34e8xYCo5CcoTu6Vj f4r7gD746AQYDN3lxm1zljlQC1wQzBfzwb31hL0i8/XNRcXOX+1dLuuh2TAmZYO7Qkh1245 8iXnpFze3eZKkxM4Qvekt7VthPmkb5HFVShC3zPEHqKTebboy8NyKLexLtjw/h6PYd66bWq y7rTxCB8v+jALVbVAUY3A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:z9SeE1U8x8Q=:TvnLuwG5M3R4SehEmJ79gq MLS1kXDrpEa7OI5/hCdMRBzmpZOzktum0GSMQjgXpzhNLGEO7JHVu/i9PVWvAJu4K7T3wzetI 2Bd8wVPlgSnqXgnZgtj6scpIIee35IBd6n7n2LNIKUuYTzC6xq+EsZoMweRnoI5SuKRG0bVc7 GmMlBRqkFGSZBoRUPZX0v4G8XNi8RGuZoGQ/fYdK/V9T/EexxXJRQX58qJ+c0smribAr6yfqy MrTNNIWVF2OUwJGFfHBaDS7PDmRYIhoJPXDUQG2jauijomVVqs1jQfrafIW5sXzhIQjuDu1QQ p9fpKhIjWl31FrA6no0UqmCOPjQX6ZeFirQdw2ADmKnQzYtVtCcmcb+Buo1ha4P/LB9hfriGF kfaih2s6AV9hc2hipPnuY1Oi3t324vCWASwY1wzUttx4WietR+fodWoqSl/UC6/XIfV3j2lSG SrPp8COmooDcZsZExP0zWMMGXyVRE7wZUcli+R+PproKwSZDUz2uVYNxPsAC93AeyrU95eaj/ Ev/z6afzlqpSdn6EdCwj25+zrcMwyjVk00Wrcs7tdZnlb2BVuoxLekSjiIH+yCsmz+insZz58 nYgYdFbYslffgecFRzfEAFlMgNlBg0NrzRRckr7RIHmYONfUsRAhHcQN92rAj/tyLPQAwjMk+ bJrgFZIkoMB0fpPLVd5VnYYefb8KFFZX6+pT/BxH/MC90kC94/SV94nqV+B/PenJ03iSrs9aZ 9ySr6SZhQh9boXOg3p6PP+hf/hc+j/TUl+NwSN9TXoqwAqkPBUxiGoj9Hxq0fqwq16wQ6hH6c FKuAoG1J1EKc8+o2HLuH2WzIUhQQAJvUmdmrbZWyk7eqHV72hw7VLfwkYtQziMJzPdYLJHM7W 1kTvmaLL3AXRL13M+LP7rzIOD76bY+h11DMIaIZjkO7WL5ZTnQaX0H6LumQ4tnYS+hPuBVtfk clDU3xrzpxDoNjq076e33DcSqfgKDlosBSieWiAs/xWu87w9HKOMqteqhTJE4xH3XLUTvL8mU E2FTGqK7bzbevSD/+rm+nMOFGKgS6sEBvpXQrIrCaL1hx4EmU0je6dfjoVOn3Cs0BtKxITiHY fb9sTGbWlreupiGybAVeE7CRfr/NJrDtUw5KVYv+VThHePt4Bqankm8UYvzpUZ+/sL+gVgmo9 gD//aqkpcS4zYljM0auiePsqYBTIcnu/LxAaY/J3dE8U7SH3BjJGELqJrcriO8KmE20PkQQSZ xCcnWx7Ab9DuNLppmxShuYb3rHkUta3tggBSIkA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200905_093606_722937_E2ADF412 X-CRM114-Status: GOOD ( 14.41 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.20 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [j.neuschaefer[at]gmx.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.17.20 listed in wl.mailspike.net] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , Heiko Stuebner , linux-pwm@vger.kernel.org, Linus Walleij , Thierry Reding , Fabio Estevam , linux-rtc@vger.kernel.org, Arnd Bergmann , Mauro Carvalho Chehab , Sam Ravnborg , Daniel Palmer , Andreas Kemnade , NXP Linux Team , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , devicetree@vger.kernel.org, Stephan Gerhold , allen , Sascha Hauer , =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Lubomir Rintel , Rob Herring , Lee Jones , linux-arm-kernel@lists.infradead.org, Alessandro Zummo , Mark Brown , Pengutronix Kernel Team , Heiko Stuebner , Josua Mayer , Shawn Guo , "David S. Miller" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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äfer --- v2: - New patch --- include/linux/rtc.h | 1 + 1 file changed, 1 insertion(+) -- 2.28.0 diff --git a/include/linux/rtc.h b/include/linux/rtc.h index 22d1575e4991b..fcc086084a603 100644 --- 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,