Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp467510pxb; Thu, 14 Jan 2021 10:07:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzCAaqdizyj3uUoOcNFxkEZOCvahiyvb9/dE1F3vuCwdVbuOp6b1K0d+rVoqLqOz7IbURjV X-Received: by 2002:a50:8741:: with SMTP id 1mr6690949edv.349.1610647675135; Thu, 14 Jan 2021 10:07:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610647675; cv=none; d=google.com; s=arc-20160816; b=r2RYVbAeeR8bMfJV0AWcluMRUn1Dxef+mBJkdX6y08wa7sH/jnhDmhnHce8W8sfNZZ u9+f32iZGMdwgYdmwpL7PqClZuqRbE5bZdttsPhFI0TzDWcqDPxog8PlNiHN/ohSnqVt 8dv54ikQp8zuNWvO2b05+k6SKrLsK2ONba+DFp34uPNyPmO4m1BF392VWpN8aGh5Ql0I vEPqyP/gsUW5bI9SvxAuD9icfYDfS+jiewdF+QyMrOUDkswz9YjYFORZICQ89QqoOWZH +snGhYo82TWNIxQEKzLuwLiIrWXGuy+z8esB3zzNq3fTN3F/cKX5knz+CZK1o1aag6OE lsfA== 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=31UqSuHF1ocLjpE7LjdaUCYLg2as8X1DX3D/m2Qhf1c=; b=O9sQHGGHzKPG2PovPtIJVUtlMEBoxF9liddW2zMP7CFpe7t1bv0sQaY/8QuS7l0BIs qSYqIli2HOz/fzL+XUpt+wNkOsgeTDv0XGuOYpv1xNM73vYUPwBqAXQLGxWun0GWy8qp 71cfpOlaD2fKoxT8TuMGgn50KhWX7R8YELJP/mpRXIO4Ymrg7rlTXoHtmwhAR/n0rpvU j0MuhHdxn9rpxz7gnFCsdCOLDg9qUDejxYrkxEIUMAfQa6fUwuLOVRYSkNa9nYCE1tB7 SHEIw4STMBdXHOGNYUFXH4Tgp9ldKZHcjv0oeoCkXj1sy+p7Yi1gypsKcQ3oeqgNagMU fW8Q== 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 b1si2705724edy.429.2021.01.14.10.07.30; Thu, 14 Jan 2021 10:07:55 -0800 (PST) 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 S1729328AbhANSFc (ORCPT + 99 others); Thu, 14 Jan 2021 13:05:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727901AbhANSF1 (ORCPT ); Thu, 14 Jan 2021 13:05:27 -0500 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 E81F4C0613ED for ; Thu, 14 Jan 2021 10:05:11 -0800 (PST) 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 1l06ze-0005bf-3P; Thu, 14 Jan 2021 19:05:10 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1l06zd-0003wT-HD; Thu, 14 Jan 2021 19:05:09 +0100 Date: Thu, 14 Jan 2021 19:05:09 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Clemens Gruber Cc: Sven Van Asbroeck , Thierry Reding , Linux Kernel Mailing List , linux-pwm@vger.kernel.org Subject: Re: [PATCH v5 2/7] pwm: pca9685: Support hardware readout Message-ID: <20210114180509.j5wcbxuwx4rzfys7@pengutronix.de> References: <20201216125320.5277-1-clemens.gruber@pqgruber.com> <20201216125320.5277-2-clemens.gruber@pqgruber.com> <20210111203532.m3yvq6e5bcpjs7mc@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="j6p2aexwzcoijx25" Content-Disposition: inline In-Reply-To: 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 --j6p2aexwzcoijx25 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Clemens, On Thu, Jan 14, 2021 at 06:16:22PM +0100, Clemens Gruber wrote: > On Mon, Jan 11, 2021 at 09:35:32PM +0100, Uwe Kleine-K=F6nig wrote: > > My position here is: A consumer should disable a PWM before calling > > pwm_put. The driver should however not enforce this and so should not > > modify the hardware state in .free(). > >=20 > > Also .probe should not change the PWM configuration. >=20 > I see. This would also allow PWMs initialized in the bootloader (e.g. > backlights) to stay on between the bootloader and Linux and avoid > flickering. >=20 > If no one objects, I would then no longer reset period and duty cycles > in the driver (and for our projects, reset them in the bootloader code > to avoid leaving PWMs on after a kernel panic and watchdog reset, etc.) >=20 > And if there is no pre-known state of the registers, we actually need > the .get_state function fully implemented. This sounds right. Thanks Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --j6p2aexwzcoijx25 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmAAh9IACgkQwfwUeK3K 7AkiRAf9HsjBHUFdx6tf8RgomKLnOSg5mQTjTfN8l5r3rM3YvPFexDA8bEMrCbD9 odIhii9oDJwwaK3MeDe2ox3wiP/fK/7NtOCO2ipDTtBt41VCdyAjJQBHrOQk3MyG tMUSpnc9Ly7ebOJg1wKDl3m9WwBRtyUixnKkh/DzxCw6cQYL/0yc67pYAuk94Yft s/kHzoqmiMoTLaVnOg84nt4j1k2vI7e3PAUA/IbmChOTHTkvU+wo2Wl61rb5Jhus 1AC0uKvsXssHMVk2NSYCB0bdS2HRpTOR6L1uEyDRINqBG6zjiDGHoKQjjzDDjqd9 eG5JusA5ChrNvkqwHsW+oMLZ4GfQDg== =7aIM -----END PGP SIGNATURE----- --j6p2aexwzcoijx25--