Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4797091yba; Tue, 30 Apr 2019 04:39:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAAb1fVXIzV//eYr/ye9DDRazQ3wj3p5OAPF2vWea7QE40hqGSSIZ1cnhrA/e6LOxz3wyQ X-Received: by 2002:a17:902:f302:: with SMTP id gb2mr40035581plb.162.1556624379421; Tue, 30 Apr 2019 04:39:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556624379; cv=none; d=google.com; s=arc-20160816; b=Q90U3dRurKB0vYvIWu6fGvlp78Cjrc2j3naYFtiuil4wymlTiBal30roV5kgLABDwH /UkaC5mJQ6O6nB8G8+qMNDlD9Ywdo4uEdJ/QRTdO8/LL6Dxx7pb9Nfmu0FYMb5tvEKKC j2gLlW/9hoGsFXcH/+RF1QrDeiKWQIIudd56W+lqxk6tXDCfxfsb6zejnInwIh7YngSp NZu31rCUY3szOKXI6KTI38Ev/ydsNDrp+rnsjrgvizoll0Mp1yMxtMgnTBzxXtZoh2xd lR9UcGTVpYbtlpn2/4OUPpcMKblOHAlPt5n3MAgpIc2HX7bCOyEIdnL6+dEtFha2GSri dsYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references; bh=3ZqUNMOajWXkmqqshL8wlszHcVuSMPgoG2FRoa2gMYM=; b=INi07AZ7TO1ba6t3c+qif8RxbYu1DsULsMi4Q0jhTKyDwogFDFFpaGf/QzpmgejGU8 JnM8TU9cOm9Wc4obPiZ5+tp9SwtvRUv91qNU08+3GqGWp2N8hw0fhrc6uUcVZvpjBOl9 FBC/A642tJPTwPPc2nzs/42eyv0CQusPS8WlpMuUelpL+qOnc1XjQrWRyz3idu2Fox86 ah5UZYMf8mp4AzKzzic660vg7FGS6WhvXcFLCJHZhFJUJIqqIsZRStZFLi6nwGjo1RO2 3xLi1lyHy154AxwA/C7D4JQyB76LtgQG5bBTPrFS7+qh+R+q7SZL6O9dj3EVwK0yexyU /IdA== 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 e22si34741160pgi.66.2019.04.30.04.39.23; Tue, 30 Apr 2019 04:39:39 -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 S1727163AbfD3Lg2 (ORCPT + 99 others); Tue, 30 Apr 2019 07:36:28 -0400 Received: from guitar.tcltek.co.il ([192.115.133.116]:58374 "EHLO mx.tkos.co.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726202AbfD3Lg1 (ORCPT ); Tue, 30 Apr 2019 07:36:27 -0400 Received: from tarshish (unknown [10.0.8.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPS id 3EEC444028D; Tue, 30 Apr 2019 14:36:25 +0300 (IDT) References: <20190430093212.28425-1-alexandre.belloni@bootlin.com> <20190430093212.28425-2-alexandre.belloni@bootlin.com> User-agent: mu4e 1.0; emacs 26.1 From: Baruch Siach To: Alexandre Belloni Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/4] rtc: digicolor: set range In-reply-to: <20190430093212.28425-2-alexandre.belloni@bootlin.com> Date: Tue, 30 Apr 2019 14:36:24 +0300 Message-ID: <877ebbu3lz.fsf@tarshish> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexandre, On Tue, Apr 30 2019, Alexandre Belloni wrote: > 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; Where can I find documentation on the meaning and usage of the range_max value? I could not find anything in the kernel source. baruch > > return rtc_register_device(rtc->rtc_dev); > } -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -