Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1242767pxf; Fri, 9 Apr 2021 03:48:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiqevmz70qbntF6SpSwGwi1Jqty7ki7u8HAyrkrCtBHbGMCjTfTTAZL/88uMoM78UB4RnK X-Received: by 2002:a17:906:7ac9:: with SMTP id k9mr15831010ejo.229.1617965284029; Fri, 09 Apr 2021 03:48:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617965284; cv=none; d=google.com; s=arc-20160816; b=MzAwkAcfFZ8vXDdhUICnzY7eT3rNbla4F3w6V8KRoGEA7vZFAvBGnirh/vAVTZXK51 2q5PwUed3Mueu6pwpxocAW+xpNJT6gKp4v5Jf3XL5apxacnCvMK9TfqIJZYlgWX+yro5 3zsu65vR++vC9yESZUF/igyLhsInMA1Z2ffcq0Ius0zcrtICpmBG+NdohS/lGHfhHeuY fuoHaOQnB7+Nx6MbTFGnTH5fFQE2KbFiUvcNmdYmYPHW8JogRIaPuf8bKaQIIo6CeE3h WlT0T912wM6/ZTuVIpLd7fEHuFTGM7zHrXto2rISmmRXWSonHvHOeijBZ5/eUMBbkv4a OL3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=96OXOCgDP82PZFNmbF5ecN/YmitKd+sSSu2YoD64Cl4=; b=uhXU+/C2MIBiogJyPARE7OUMCAwYFUtv/ybfjCl3ZYh+BkeMDWviGEebjLK62hDyLD 3evNa6WOkHc77LCwncyAVf3rO2kOIbstKOdgQZLHJ5QL+cgH2ObOQ4qbTYeylstyBYR9 6IM1MYcD02LavIqYeZfhwPB5uElBttp9fdubGfDNw47GKvhPPMZ+nrdV+aYDObx5kOjA Yt061PHg2knjJ/hHtt2gXRG3fxsQWuGnBkFaGX2S7dwQ0fWG1RK8Fmh4BJrSai+avuFL onIs9uX3yygSD1wXHQF5+Nnrt31bMui8My95ZUQjbRwwccOpAWSRYcyWjK9nMuOH9oMv ieYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v21si1903918edc.419.2021.04.09.03.47.41; Fri, 09 Apr 2021 03:48:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232642AbhDIKqf (ORCPT + 99 others); Fri, 9 Apr 2021 06:46:35 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:43236 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231127AbhDIKqd (ORCPT ); Fri, 9 Apr 2021 06:46:33 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 231C01C0B77; Fri, 9 Apr 2021 12:46:19 +0200 (CEST) Date: Fri, 9 Apr 2021 12:46:17 +0200 From: Pavel Machek To: Kirill Kapranov Cc: a.zummo@towertech.it, alexandre.belloni@bootlin.com, phdm@macqel.be, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] rtc:abx80x: Enable xt digital calibration Message-ID: <20210409104617.GB10988@amd> References: <20210328210232.10395-1-kirill.kapranov@compulab.co.il> <20210328210232.10395-5-kirill.kapranov@compulab.co.il> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PmA2V3Z32TCmWXqI" Content-Disposition: inline In-Reply-To: <20210328210232.10395-5-kirill.kapranov@compulab.co.il> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --PmA2V3Z32TCmWXqI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > The XT digital calibration feature allows to improve the RTC accuracy, > using a Distributed Digital Calibration function. > See ch. 5.9.1 of AB08XX Series Ultra Low Power RTC IC User's Guide > https://abracon.com/realtimeclock/AB08XX-Application-Manual.pdf >=20 > Signed-off-by: Kirill Kapranov > --- > drivers/rtc/rtc-abx80x.c | 145 +++++++++++++++++++++++++++++++++++++++++= ++++++ > 1 file changed, 145 insertions(+) > =20 > +static const int xt_freq_nom =3D 32768000; //Nominal XT frequency 32 kHz= in mHz C-style comment? is it 32 kHz or 32.768 kHz? > +{ > + int retval; > + long Adj; Adj -> adj. > + > +static DEVICE_ATTR_WO(xt_frequency); You are adding new user interface, you sould add documentation. Best regards, Pavel =09 --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --PmA2V3Z32TCmWXqI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmBwMHkACgkQMOfwapXb+vIZCQCgpLHySKQSuRHiyPEiKl+9062O rlAAnA86MaZPa0g8CeIxTSVd9Uu19NbW =P1AG -----END PGP SIGNATURE----- --PmA2V3Z32TCmWXqI--