Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4681974yba; Tue, 30 Apr 2019 02:35:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+7xSAgFEV4jmF1pmy51TCrjmk9isBUpPGmwGQMQqbou97ZATLVO/9rA73Fg0Az+5mN7qP X-Received: by 2002:a63:da51:: with SMTP id l17mr23343406pgj.115.1556616926275; Tue, 30 Apr 2019 02:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556616926; cv=none; d=google.com; s=arc-20160816; b=lj4FQmljh0rUjqaU+BfEwgj63PC2daXFwNEd4xx8m2iYhoPD7//+gmXIVReUYFz5Nf Q5IHnI9DWTp+iNUgZoEri1qAgK9nCYZRVxvEqdJEXu+LadpWNf/8rx1vCp3IkQ3wMfSL XBwbS2j8qqsFTSEJU94WQLd6jheGVASCvugNlP4blOOhiAHyOjCHzlN/0/UFc54DQ355 VzpvB5ZndYR9R9S3bmWJiTZo61hccuy0gyX4BHvVumm0EaYyJEBNL+4jjuxp9PUqqyRL IRhnw5+grsXPzcf8MI6fidGX9A7XCwC1CU8wxaq96st+AQHgoHneIbyBW4WL5ao9RooS 7w0Q== 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; bh=YTyaqc0huSTxtjte7jf+vkIC3c14N3wg5M9REpDPLSA=; b=R3oati7VTvt/Xxl97d1J/4GRN2J9BkwKk/VBC7jRLTxb/Uh+w5xHLS6zBARjVNGMKQ xk/6vzPvhXknOBDTt2Vsp8XczjPM+O+j2T3r8d62lVIlGaOIb0dReewjzodC/2BJwD5Z S1qBZugCjgjJUiyWL7duCOven2ZzDjz4gdjNRvcb0sdkwnaQaYd10OI2z+RhDhXQpjbm TMwBr2v5GAjHPcbdV+X6uHhPb67C3FlHO///nYr6PZtPXtwe5B/o2OoIR/MVgU1En0sB wJ3XLJ7UJ9dHspq1Vefq93dzB5IeHqOn8mRsy4hib3tMUOpu3uLhOXLGcYLPfglLOHU3 j5hg== 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 a15si9038167pfi.125.2019.04.30.02.35.11; Tue, 30 Apr 2019 02:35:26 -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 S1726924AbfD3JcU (ORCPT + 99 others); Tue, 30 Apr 2019 05:32:20 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:37217 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726646AbfD3JcS (ORCPT ); Tue, 30 Apr 2019 05:32:18 -0400 X-Originating-IP: 109.213.14.175 Received: from localhost (alyon-652-1-31-175.w109-213.abo.wanadoo.fr [109.213.14.175]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 0B7C26001A; Tue, 30 Apr 2019 09:32:15 +0000 (UTC) From: Alexandre Belloni To: linux-rtc@vger.kernel.org Cc: Baruch Siach , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alexandre Belloni Subject: [PATCH 2/4] rtc: digicolor: set range Date: Tue, 30 Apr 2019 11:32:10 +0200 Message-Id: <20190430093212.28425-2-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190430093212.28425-1-alexandre.belloni@bootlin.com> References: <20190430093212.28425-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 While the range of REFERENCE + TIME is actually 33 bits, the counter itself (TIME) is a 32-bits seconds counter. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-digicolor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-digicolor.c b/drivers/rtc/rtc-digicolor.c index 5bb14c56bc9a..e6e16aaac254 100644 --- a/drivers/rtc/rtc-digicolor.c +++ b/drivers/rtc/rtc-digicolor.c @@ -206,6 +206,7 @@ static int __init dc_rtc_probe(struct platform_device *pdev) platform_set_drvdata(pdev, rtc); rtc->rtc_dev->ops = &dc_rtc_ops; + rtc->rtc_dev->range_max = U32_MAX; return rtc_register_device(rtc->rtc_dev); } -- 2.20.1