Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp6542103imm; Sun, 20 May 2018 05:34:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq7BCunf5nPboGNI+ZE/ufaXyfvbR30K4NJxC5YN1p8yPxMCnXsFUBxDlVwpFRLcDmQJjZq X-Received: by 2002:a17:902:7288:: with SMTP id d8-v6mr16627339pll.218.1526819696875; Sun, 20 May 2018 05:34:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526819696; cv=none; d=google.com; s=arc-20160816; b=oBhSyxduE4IPt5pEgH4nQN+hVdbvc4/myuEV8NQqRyqITr35NPIoVDd8VoOKnyJCQO mxaZ5AmS6LPtj8zsmxPV7dKQZmAcdAGPUn5z4UUBWCzYdXs2IX1qlEPR27cPSFuzbyoH 0tL8E2SoW70A5yXmGmLJY+Buhb6iSZYfRYyiyngIu5+VYZ/z/W8JljeU+R5teJz2TeKx 4ygVpAs0T6jJd2v26bo9u/Wsaicfe1hEa+LCAdG/JsL4XkFyzoiFX2iM1KeOOirWVcVh 5ZfDEICB/bxG9of9F3CmfihMDVV0CVM9XJx+54Fz3k7NipulC7xNwmv1DRy7ysiLL/l3 PFYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=0yOGi3zyNtNZuOGWD0fNB560EcfQ83Z7cGUomZlBrys=; b=gLaYHlk2mIS3tjqtimtlc6VKshYXYBW6T1ANvJ4/goDPNJM++psbDtRy1SDIZAc6jy cMJQZ9pIrWFabMCq+z1q4oShxGAOvob3Xj4lm6PMYh+qOsEUPfSkjNcD8VTL4HNoI1UO 9u6ZDiE/A6JDHIpm3mC1JBK5ieNgCW5sKQnCTKjidcXj3Dcbr9Eoeaw6v/BVqkIcxfM+ mQ3oMbm6eAbl7gxEdg+p8ycVfeuQknuVE8lJEzAZiUx7yfs0mKO+dFNXEErAEqUFXjZm PdpSgSFEWoJuOV2hydXvOeRx1SCpGuAuEZkaRl4vzL3D/Blp1lUlKNi/g9Mfk/PsUOz0 AwEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o2-v6si11181398plk.527.2018.05.20.05.34.08; Sun, 20 May 2018 05:34:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751426AbeETMd4 (ORCPT + 99 others); Sun, 20 May 2018 08:33:56 -0400 Received: from mail.bootlin.com ([62.4.15.54]:54498 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750966AbeETMdv (ORCPT ); Sun, 20 May 2018 08:33:51 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id C464B20750; Sun, 20 May 2018 14:33:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [88.191.26.124]) by mail.bootlin.com (Postfix) with ESMTPSA id 974E92071F; Sun, 20 May 2018 14:33:38 +0200 (CEST) From: Alexandre Belloni To: linux-rtc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Patrice Chotard , linux-arm-kernel@lists.infradead.org, Alexandre Belloni Subject: [PATCH 2/2] rtc: st-lpc: add range Date: Sun, 20 May 2018 14:33:37 +0200 Message-Id: <20180520123337.14856-2-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180520123337.14856-1-alexandre.belloni@bootlin.com> References: <20180520123337.14856-1-alexandre.belloni@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The RTC has a 64 bit counter. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-st-lpc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-st-lpc.c b/drivers/rtc/rtc-st-lpc.c index 2f1ef2c28740..df467ace397b 100644 --- a/drivers/rtc/rtc-st-lpc.c +++ b/drivers/rtc/rtc-st-lpc.c @@ -258,6 +258,7 @@ static int st_rtc_probe(struct platform_device *pdev) platform_set_drvdata(pdev, rtc); rtc->rtc_dev->ops = &st_rtc_ops; + rtc->range_max = do_div(U64_MAX, rtc->clkrate); ret = rtc_register_device(rtc->rtc_dev); if (ret) { -- 2.17.0