Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3692276pxf; Mon, 29 Mar 2021 08:53:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhGlhFQGQGqIijbEHZrKwrMK4Q/RQY39uED8RAAUI9XblMW9C70iW5MtSbhss4Sc7qvOVW X-Received: by 2002:a05:6402:34c4:: with SMTP id w4mr30095520edc.367.1617033189517; Mon, 29 Mar 2021 08:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617033189; cv=none; d=google.com; s=arc-20160816; b=RbQd18A+hpPbU2N2RWJPhxRUXZhouCZXM+xWFv2GVibEdIhyyewtb7mihLnnjnS2YF rm702DFQDkxnSKdfOS0b9ldUQX3xmOR+t8DIlYbfKSNmN9xbDjFrFoH802bA0ssYcuqD MGWrrVYDGlTD7sN9R8yV1Ylmpgsg1csxZ3QKo6mtucfXBdlX8hboOFMFSj6wEc1fzXSu jc138pHyPQHyQPP7lMfea6ZAmAhlCjo8QfbT/0LS3e6DJ5i6aw747NxFvrwGv4Iqy/Av r90CKeitg0MLdpsLjs+SOvuF+GN5RuWQhrkOs5iosbWKV2RcSsP6YJMuW1ghrijp62u3 Dfqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=HiogpoBMpa0ECDElS9173X/6/V8o9WiGU7h8sFutMtI=; b=RrIa9JTtM75o0YmsqVquVpsGnwkDGWVXE50svoG07Negxsr/jtFOfcnF8jKL1O2y83 BWN/n/kOnaOfxPzGK8uaJGleMEZOR9OgyP8HB8X+Vn4/XfCxMy8fiu0geg1xeE6KOfHd lD6Dokn14Oo0dYrdFja3J8Gf0IufTW8zQ0c42s+llR/pAZDu7Isc/MI+aZVk2m6HVwVD 7g2MPFek6lSQ+jU2fgSKjTfgq6J1lVwQfwOZisNTDb7KrUPYu91qe43NeyUNcfGGsIIG YplP7qM1dFzVkF8IDWwssGD4nct0QpsP7vsOv5GSUTT7kCmV9kT+XYxFm6Erq2ctSHMW 1w5w== 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 y61si15072182ede.590.2021.03.29.08.52.46; Mon, 29 Mar 2021 08:53:09 -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 S231442AbhC2Pvt (ORCPT + 99 others); Mon, 29 Mar 2021 11:51:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230522AbhC2Pvr (ORCPT ); Mon, 29 Mar 2021 11:51:47 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEAAEC061574 for ; Mon, 29 Mar 2021 08:51:46 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQuB3-0006wI-6c; Mon, 29 Mar 2021 17:51:41 +0200 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lQuB2-00015v-Eu; Mon, 29 Mar 2021 17:51:40 +0200 Date: Mon, 29 Mar 2021 17:51:40 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Clemens Gruber Cc: linux-pwm@vger.kernel.org, Thierry Reding , Sven Van Asbroeck , linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH v6 2/7] pwm: pca9685: Support hardware readout Message-ID: <20210329155140.4gjtsw2qbpylv77z@pengutronix.de> References: <20210329125707.182732-1-clemens.gruber@pqgruber.com> <20210329125707.182732-2-clemens.gruber@pqgruber.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="v4ybh3c4vqbu2ghd" Content-Disposition: inline In-Reply-To: <20210329125707.182732-2-clemens.gruber@pqgruber.com> X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --v4ybh3c4vqbu2ghd Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Clemens, On Mon, Mar 29, 2021 at 02:57:02PM +0200, Clemens Gruber wrote: > The hardware readout may return slightly different values than those > that were set in apply due to the limited range of possible prescale and > counter register values. This is fine and for most hardware that's not preventable. My requirement here is that=20 .get_state(pwm, &state); .apply_state(pwm, &state); doesn't yield any changes. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --v4ybh3c4vqbu2ghd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmBh94kACgkQwfwUeK3K 7AlRowf/Q90UI142a9noeyN0kCYojz+YUqe+s2Tv40n1ZmLKQz60m4UC94CxERro JJTA7hFA7xXgmUNzzI8sp159PQ6Pcc1ZTMmojZ5LCox2KBB/EAqzV+HxLwAqJY/o mFd1MzejkslcqMjujiRyfHeW9ZFZt3FW3ffiEvxrKIHsDsXinhhLCGjqpIihPmq3 8mxF99EbXV5xzNbX02or9WqM1pUaHBK+L9tjSy3KVqrPMeP9pYSg3zlIHH2B3oxA z80a/2h6GhNsXihz4jaJmY8Up1XLI8t3AVBCE4Sc0ei3fBEriR1EJScXiQVEFyEq LRrg318Yic6Qwzg9vZOHpPpOKyGCLQ== =kQFu -----END PGP SIGNATURE----- --v4ybh3c4vqbu2ghd--