Received: by 10.213.65.68 with SMTP id h4csp26548imn; Tue, 27 Mar 2018 15:34:43 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+r9RbPOSJfdoZCT8QK+CWJ6TjLtn1HbtfKL6/zZ6LMppZxNqyCgqs3VT7P1dQTrhD2Kwn5 X-Received: by 10.98.9.72 with SMTP id e69mr863549pfd.197.1522190082930; Tue, 27 Mar 2018 15:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522190082; cv=none; d=google.com; s=arc-20160816; b=WXNVKiNaG7dr3UZchu09D5hw/djlMovJyXu201Oszlv6W9AWCJZySjYfEsbnrusbRM lR4zOmxLnSnq22Kn/hQFYh03HqXARXPwQd4pAz3a8A1+2/pR/ONQekLpEf4kG/sD5j2Y Z42VCN52WpXYiCZ5GwKsrMDqyS2b2VMdUus7E8luibW27QR2mOcEe8AQdCLBXz8D0M8E LghMSwwE+fUZi3ykit5NFxxr+JoVpzy/UFXFBrVSUhuiCvEOeB43ptcYB0ElnUeDsxSO KPT7s7Rjz6/cOxxqOV2HM/ZAiH289HCDWXQiQYkbOiA6UZUB+Bqojxk18pZnLA4F9Q/s Uv1g== 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:dkim-signature:arc-authentication-results; bh=IUO05CDcUVfzZvVPsSCNgBLsGeZ5b7xwa12RE9dnno8=; b=WNWqNzlyvF3mrSRYIARV6J89aNy4UKvcnczGEGYDelEzPt0CynfcezZ2ZnB7CQIorZ 1eSEW8UaIY+72sulcXs1nE3DJolDLzTGViqAtSFrnjgu3VSdOcwa7X0FCU86ypMrdfQM YEFY17S1iziAybxTUTStkNcu/u/TN/i3qoYRkYb9J7f+ogK8Thu2UdxszEz1QDzVmOZC 2kukaOm2c1M8l8AlopFk9+0mhtDiE+WMvKp7sr+lQGAyPmdFn73t10rFParFChBs74Y2 uKEQO4iv8tAMg3j2Pqf0SeCnVG7z2y/NZYJjzvO3PUeykzIX1O+IeCCY+vgg+haTEB4E iB+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ay3AYhj9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a68si1714036pfk.35.2018.03.27.15.34.28; Tue, 27 Mar 2018 15:34:42 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ay3AYhj9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752548AbeC0WdU (ORCPT + 99 others); Tue, 27 Mar 2018 18:33:20 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:37350 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752414AbeC0WdS (ORCPT ); Tue, 27 Mar 2018 18:33:18 -0400 Received: by mail-wr0-f196.google.com with SMTP id l49so419943wrl.4; Tue, 27 Mar 2018 15:33:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=IUO05CDcUVfzZvVPsSCNgBLsGeZ5b7xwa12RE9dnno8=; b=ay3AYhj9r7eypddMvGC1olN6boSuypz4Peg8O0c/3sSh23TiDImbNW9LKUcxkMwPeH kQaug0TC8cmpvxjkolqR4T6qpLTkKQqfBiAV/+Ja51rGPqrPlQcCBmvzDjOm6Arz6+IG 3TqacawiuLSHHqz3wIUGA7tXhTkNNfznM7TUg5XEgkEmjZlDIrcFoomK9GwLN86/5N7W CgSNRx4aWUDPzB5D3juRWi4CDmA741npMz839Ki9GQ2Ec7pidDX2N8qA1mHXP7vC7B8v +kPdx38sQE47kzozpN0g2pXYkzSwMgIufxC4q3U1Qd9P7QvHbO1DSbHZ6Xoxnm6z3bbB 9k6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=IUO05CDcUVfzZvVPsSCNgBLsGeZ5b7xwa12RE9dnno8=; b=JLNnGltazPvZj84Vy3MoeR2Q64kZToON9UNIh4LU136nuiu9GxY/hFEBrBvpL6icjg rW53fdeoPPaT6HbflbMrrIEfJASRZljxujQkIsf1p0BA8jjw/043AVxSfPQAWRQUvaFi txMBaJG4yAWMkNt8wqW8SZTPd21H4PzN9bB41ZPiApvjTvdHOTHi3+U9v5O4mHVQg3mk OBCU4IxpPX9wsCUDTFByCGlRq6RMBdN6xVzxLMFLlAzPUmdndNKOS9ICO6TehhOZpbiv WwhGATeHNVeX8KvdkZl3lyNGR6dyiR6ADP6ewwvbpP2Yq3n5oE3S1kq6WIU5gV/43P1C PNXQ== X-Gm-Message-State: AElRT7GOBAnFQHRBSYF0mHq6yFrsMqp1AJiu7th1FcvnK/SXgINYa9d8 4dTj2fxjBpW7MZW9Ak5fkIg= X-Received: by 10.223.142.164 with SMTP id q33mr866779wrb.72.1522189996834; Tue, 27 Mar 2018 15:33:16 -0700 (PDT) Received: from localhost (p200300E41F193100021F3CFFFE37B91B.dip0.t-ipconnect.de. [2003:e4:1f19:3100:21f:3cff:fe37:b91b]) by smtp.gmail.com with ESMTPSA id r71sm3178995wmd.48.2018.03.27.15.33.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Mar 2018 15:33:16 -0700 (PDT) Date: Wed, 28 Mar 2018 00:33:15 +0200 From: Thierry Reding To: sean.wang@mediatek.com Cc: matthias.bgg@gmail.com, linux-pwm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v1] pwm: mediatek: improve precision in rate calculation Message-ID: <20180327223314.GH28163@mithrandir> References: <72b74a30ced1c7e7549dcbb56d6123fc27fac405.1519980119.git.sean.wang@mediatek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jRdC2OsRnuV8iIl8" Content-Disposition: inline In-Reply-To: <72b74a30ced1c7e7549dcbb56d6123fc27fac405.1519980119.git.sean.wang@mediatek.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --jRdC2OsRnuV8iIl8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 02, 2018 at 04:49:14PM +0800, sean.wang@mediatek.com wrote: > From: Sean Wang >=20 > Add a way that turning resolution from in nanosecond into in picosecond > to improve noticeably almost 4.5% precision. >=20 > It's necessary to hold the new resolution with type u64 and thus related > operations on u64 are applied instead in those rate calculations. >=20 > And the patch has a dependency on [1]. >=20 > [1] http://lists.infradead.org/pipermail/linux-mediatek/2018-March/012225= =2Ehtml >=20 > Cc: stable@vger.kernel.org > Fixes: caf065f8fd58 ("pwm: Add MediaTek PWM support") > Signed-off-by: Sean Wang > --- > drivers/pwm/pwm-mediatek.c | 17 ++++++++++++----- > 1 file changed, 12 insertions(+), 5 deletions(-) Applied, thanks. Thierry --jRdC2OsRnuV8iIl8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlq6xqoACgkQ3SOs138+ s6GCRRAArW5dSAE+wDWE+7hBfS66wYIK87ZXIPUO69YVGLG5H1GaJ/OGo1JepDJU ibVXdNZiAcJLiBWBYVuL/8YycVFUCMXZTj5IWaooczKWOj+p2vNIPorzYAkMPgZ8 qLtJxi5fEGO5DqQlAGKBPMhlIIgG/PB1WPxNiaVzngJD81ioAY1H8gTC5+Yxwigp 67wIBtxSHML3lqzpUHBitaIFNHmDQWng3eP8LU5rUqGYYsS3bq08JUQw3uA6/U50 utBcXrzgPQdREhs2j6hyJMDPrdID9DZtcsfm4Z9VIN7cfBtqlNqA9bcrTKHIq6OF QO8BzGonimfsZk4JqBeVDdCnR3j442SYlrF4Iccat+fqHxGrNKtE8bvaPZqxCQeG uy3hx14uKOjUkR8vYbC0Oov+cN0WtSkI1VtUxwei/LBDwPWjznLl6W7Nv+NW41k+ funPi3FjiEWC/54dQd0+0iIQZSB+spb06WTKeN3PzO7Qa0Sit3ybJthCSbLKXK+/ A5JCNMlVKRelW0EFQ6eoZyUVeHKWyBGt827ZEDEfPjon5OYbe30zd/1E8owtjSje nSSJMmLSdinM2npCCmIlCMpYTVZ1tbL2VJ9ZdO7AuVDDHkRiR/3kq1VkphKrwqxi e4tzFc29xff40FkvhQkU5px1TsRYwv4bQbVTwuAWLH3uy+1k8qY= =Bg+w -----END PGP SIGNATURE----- --jRdC2OsRnuV8iIl8--