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.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,USER_AGENT_GIT 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 19C37C10F0E for ; Tue, 9 Apr 2019 10:16:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E4CC92084F for ; Tue, 9 Apr 2019 10:16:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726978AbfDIKQk (ORCPT ); Tue, 9 Apr 2019 06:16:40 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:55075 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726001AbfDIKQj (ORCPT ); Tue, 9 Apr 2019 06:16:39 -0400 Received: from localhost (alyon-652-1-42-177.w109-213.abo.wanadoo.fr [109.213.33.177]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 287D6100012; Tue, 9 Apr 2019 10:16:35 +0000 (UTC) From: Alexandre Belloni To: linux-rtc@vger.kernel.org Cc: Vladimir Zapolskiy , Sylvain Lemieux , linux-kernel@vger.kernel.org, Alexandre Belloni Subject: [PATCH 2/6] rtc: lpc32xx: set range Date: Tue, 9 Apr 2019 12:16:27 +0200 Message-Id: <20190409101631.5116-2-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190409101631.5116-1-alexandre.belloni@bootlin.com> References: <20190409101631.5116-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The LPC32xx RTC is a 32bit second counter. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-lpc32xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-lpc32xx.c b/drivers/rtc/rtc-lpc32xx.c index 295dc6ddac6d..f9e899fc4889 100644 --- a/drivers/rtc/rtc-lpc32xx.c +++ b/drivers/rtc/rtc-lpc32xx.c @@ -259,6 +259,7 @@ static int lpc32xx_rtc_probe(struct platform_device *pdev) return PTR_ERR(rtc->rtc); rtc->rtc->ops = &lpc32xx_rtc_ops; + rtc->rtc->range_max = U32_MAX; err = rtc_register_device(rtc->rtc); if (err) -- 2.20.1