Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp411566imm; Wed, 13 Jun 2018 02:26:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL8v5P3nIv4WfGso2zfK7FXA+2dV62HlgXUv0275WYSyBgVI4kSERKF5rfKdX4jikOZpOR3 X-Received: by 2002:a63:b742:: with SMTP id w2-v6mr3367649pgt.200.1528881974331; Wed, 13 Jun 2018 02:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528881974; cv=none; d=google.com; s=arc-20160816; b=ZRsNrpI3kynPERI0kACl2JYOZuTVaVrirUhkwdBjFIRygKDc8TTPHMRqAjsihXD6W5 rAQWqTIhuiy3cdqXf9dZ0rvCcx9l3isyKCTfS4I0V0ESyRtZeHjCL796YN4Mf5YZuCdn mDqBkn0mfNxDKOuLRNQFY0qVV03oQMlAlxSv0evAqc7C4wWexco6YauTYJJ1u5JWMtWi MS62IAyoGsj2DxMPwP21qUv9lzueOeI+UcgH1wJ8ml2lnJEIWhTs7rn83XtMR+qD3ew6 83lvpqsK35gOAkVXTeXg7H0zXJR7Uwd2xMUaQMlYhaetK6hQEhKj/e5pAIqxanZum4oh +Xvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=lpLo9i3bc5ZLVEUVqCjndeKwkFFVMnC1l/NEBCnxycY=; b=VWijd1pTJ7aZcNeILzsWzBAypfthE1Nm+vzrRHb/zG7ECEomGB0KQ3VK56Q4OYDoc3 fAWQ2YDCv/gg7Go6AHB6j3X35LvslgTe3jkjzUDI6aShMoV8PNViTwa7EjD27VRlNr2+ dAdD1Z4PMKuxNf4eEesRVqy48Se2QFUTafmbxrYj0ktnKVpNn4t9uMXRndR6yIMk8pbs ezvOJDxSsU3Skj2YMzJa81ljt0M35Xk/O35EQwobUI/Tk8dDqCQl25iBW63KgcRoJ+cT Bh1gEKahK5+hH+Vq1/IObi6IkTzMf6pXY+caR4PtAd7T/GDA3ackpbICTVpkRdMLcWFi wJWg== 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 d31-v6si2467584pld.23.2018.06.13.02.26.00; Wed, 13 Jun 2018 02:26:14 -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 S934563AbeFMJZf (ORCPT + 99 others); Wed, 13 Jun 2018 05:25:35 -0400 Received: from mail.bootlin.com ([62.4.15.54]:45878 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754478AbeFMJZe (ORCPT ); Wed, 13 Jun 2018 05:25:34 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id C7BEA20A23; Wed, 13 Jun 2018 11:25:32 +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 (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id 91ED220A20; Wed, 13 Jun 2018 11:25:22 +0200 (CEST) Date: Wed, 13 Jun 2018 11:25:22 +0200 From: Alexandre Belloni To: Linus Walleij Cc: linux-rtc@vger.kernel.org, "linux-kernel@vger.kernel.org" , Hans Ulli Kroll , Linux ARM Subject: Re: [PATCH 3/3] rtc: ftrtc010: let the core handle range Message-ID: <20180613092522.GS10521@piout.net> References: <20180604141528.15635-1-alexandre.belloni@bootlin.com> <20180604141528.15635-3-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/06/2018 11:10:35+0200, Linus Walleij wrote: > On Mon, Jun 4, 2018 at 4:15 PM, Alexandre Belloni > wrote: > > The current range handling is highly suspicious. Anyway, let the core > > handle it. > > Hmmm. I have datasheets, do you need some input about the hardware? > Something I should patch? > Nothing to do as you seemed to confirm what I did was OK. I could find why it was set to 2148 in the first place. Maybe it correspond to the default days, hours minutes, second values on the SoC. > > The RTC has a 32 bit counter on top of days + hh:mm:ss registers. > > > > Signed-off-by: Alexandre Belloni > > Acked-by: Linus Walleij > > Yours, > Linus Walleij -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com