From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 393B7C43461 for ; Tue, 8 Sep 2020 09:41:10 +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 C5BEE2076C for ; Tue, 8 Sep 2020 09:41:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="iTHdu05Y" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C5BEE2076C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.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:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Z5qvipdn/cgyXbvFVbArdtyjjxjPtkuJtlEm4G9LjfU=; b=iTHdu05YHtyO4qCG3ikamJerW 5+kJehJbYktq6ScrPxf5CMIR4zixlLlxt/2TKSszVdtVrlKypGx2z4eBB0YgSD7mEI44az9YOLMWm 8N+/D91sD1ARPxJ1SVXz4WAXeTx+jos6hABD+IHQIw2UgGs+BjgUzfbv+fMOl6qNNqFTUqlh6MMUY 02YTFhEtCPJYEFCT1ALJ7sVykNMZBP8EDyH8MtGk5rIr4FHa2Ajja76qvn5cbAizYgc/TAgWDPPKx MEYbZ3YX6HN95x8oLlC+g3Wp9IyEHuSpYO0JsmZ78jXD/sMMfG8ySLWyC6I2QMHmXdLtYidEqdQhq 4ZueafDnQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFa6X-0001gH-SC; Tue, 08 Sep 2020 09:39:57 +0000 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFa6T-0001es-W6 for linux-arm-kernel@lists.infradead.org; Tue, 08 Sep 2020 09:39:55 +0000 X-Originating-IP: 90.66.108.79 Received: from localhost (lfbn-lyo-1-1932-79.w90-66.abo.wanadoo.fr [90.66.108.79]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 0E8EA24000F; Tue, 8 Sep 2020 09:39:46 +0000 (UTC) Date: Tue, 8 Sep 2020 11:39:46 +0200 From: Alexandre Belloni To: Jonathan =?iso-8859-1?Q?Neusch=E4fer?= Subject: Re: [PATCH v2 07/10] rtc: Introduce RTC_TIMESTAMP_END_2255 Message-ID: <20200908093946.GQ230586@piout.net> References: <20200905133230.1014581-1-j.neuschaefer@gmx.net> <20200905133230.1014581-8-j.neuschaefer@gmx.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200905133230.1014581-8-j.neuschaefer@gmx.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200908_053954_140792_66542584 X-CRM114-Status: GOOD ( 19.28 ) 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: Heiko Stuebner , devicetree@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 , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , linux-pwm@vger.kernel.org, Stephan Gerhold , allen , Sascha Hauer , Lubomir Rintel , Rob Herring , Lee Jones , linux-arm-kernel@lists.infradead.org, Alessandro Zummo , linux-kernel@vger.kernel.org, Mark Brown , Pengutronix Kernel Team , Heiko Stuebner , Josua Mayer , Shawn Guo , "David S. Miller" Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 05/09/2020 15:32:27+0200, Jonathan Neusch=E4fer wrote: > 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=E4fer > --- > = > v2: > - New patch > --- > 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 > --- 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 */ Honestly, I wouldn't bother adding that one unless you have examples of other RTCs endng at the same date, I'm fine having the value and comment directly in the probe function. > #define RTC_TIMESTAMP_END_9999 253402300799LL /* 9999-12-31 23:59:59 */ > = > extern struct rtc_device *devm_rtc_device_register(struct device *dev, > -- > 2.28.0 > = -- = Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel