Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3345193pxf; Mon, 22 Mar 2021 04:24:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQ4qCwIp/uaexkpDFpp752RfAI1Xin3jwsopnruYAKayf3uNu9sO1cAMIKBXk3L60Lrdff X-Received: by 2002:a17:906:ae8d:: with SMTP id md13mr18852484ejb.275.1616412296109; Mon, 22 Mar 2021 04:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616412296; cv=none; d=google.com; s=arc-20160816; b=qnNsXhDfAqOaO37hFuGr1JndVCiRt8o7olZ50adhpZOnQ63PlippiK6uPaXmjYQk7T PIVo/fz1+6TggMGj/dCN0Tv0Fs7OFkwzDQaJzKvRnySX+CEXdMznkhTZ/mI/JEVO1f5m xVfp4jPHsdl39wNwHTr3wuvgxdr49DrNGfj8ywOX4Zw48JC3DQdff0yCeZ6nKUe+lYlf J/MhWQFglF9MRQiA7H8VZWWFm7XML2/qiNtAg//KP9IXW53BxnW213vynpAvxgGyqi3X 16aLN37gHbgzqihVPpMPhdAYzmgKk1xROHVBH24YD1EElm6ziTh/RjlBnEn99yKSKoIo ck1Q== 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=wygm1bQMpg/bHuanikGCp9NugJqdTKpE5dYzu+v5mx4=; b=QmgnwZpc3qT7M5/KzrE0/GtuLS9qJ3pfAmFs31CbMEZOTKF03eBTTGe00UBlLb3YuT 74X23TkApOcZdy+sMq4Clq0sC8iPRFrM1/Hb4oSb8kHSG68ZYWNUAm7/0hfXS7YF2Wsr 4p3UdI4epBVOGLW5EYKlE0WKOVeOsJakH/L6br9CfL7maREbXlu1ioAz/4Z2nGpcqBzc U6TUHOMnyp+pa5MBn8NWWAHCU+24v2OT1vo1yKucCRYVy5DfVLc4DO3WsWmVQ/dne+9/ 3DDLrGiTsWEYj9k96xrwX63rB4o61djuwh2jed/aNnMl8Bziv1E3O45o0DqslH2fJSRX dM8A== 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 t16si11384870edc.448.2021.03.22.04.24.33; Mon, 22 Mar 2021 04:24:56 -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 S230031AbhCVLXG (ORCPT + 99 others); Mon, 22 Mar 2021 07:23:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229590AbhCVLW6 (ORCPT ); Mon, 22 Mar 2021 07:22:58 -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 23071C061574 for ; Mon, 22 Mar 2021 04:22:58 -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 1lOIe7-0005k5-35; Mon, 22 Mar 2021 12:22:55 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lOIe6-0000RO-C9; Mon, 22 Mar 2021 12:22:54 +0100 Date: Mon, 22 Mar 2021 12:22:54 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Andy Shevchenko Cc: Thierry Reding , Clemens Gruber , Sven Van Asbroeck , Linux Kernel Mailing List , "linux-pwm@vger.kernel.org" Subject: Re: [PATCH v5 2/7] pwm: pca9685: Support hardware readout Message-ID: <20210322112254.5mjkajkq3wnhgnd5@pengutronix.de> References: <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="uuestpxaqacueghg" 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 --uuestpxaqacueghg Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Andy, On Mon, Mar 22, 2021 at 11:38:40AM +0200, Andy Shevchenko wrote: > On Monday, March 22, 2021, Thierry Reding wrot= e: > > On Fri, Jan 29, 2021 at 09:37:47PM +0100, Clemens Gruber wrote: > > > Thierry: Would you accept it if we continue to reset the registers in > > > .probe? > > > > Yes, I think it's fine to continue to reset the registers since that's > > basically what the driver already does. It'd be great if you could > > follow up with a patch that removes the reset and leaves the hardware in > > whatever state the bootloader has set up. Then we can take that patch > > for a ride and see if there are any complains about it breaking. If > > there are we can always try to fix them, but as a last resort we can > > also revert, which then may be something we have to live with. But I > > think we should at least try to make this consistent with how other > > drivers do this so that people don't stumble over this particular > > driver's >=20 > I guess we may miss (a PCB / silicon design flaw or warm boot case) when > boot loader left device completely untouched and device either in wrong > state because if failed reset (saw this on PCA9555 which has a > corresponding errata), or simply we have done a warm reset of the system. > So, we also have to understand how to properly exit. I don't think that not resetting is a real problem. My argumentation goes as follows: When the PWM driver is loaded and the PWM configuration is invalid, it was already invalid for the time between power up (or warm start) and PWM driver load time. Then it doesn't really hurt to keep the PWM in this invalid state for a little moment longer until the consumer of the PWM becomes active. Together with the use cases where not resetting is the right thing to do, I'm convinced not resetting is the better strategy. > Another point, CCF has a bit =E2=80=9Cis critical=E2=80=9D, and u guess P= WM may get the > same and make the all assumptions much easier. So I think complicating the PWM framework for this isn't the right thing to do. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=C3=B6nig = | Industrial Linux Solutions | https://www.pengutronix.de/ | --uuestpxaqacueghg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmBYfgsACgkQwfwUeK3K 7Amw2ggAlazycDEHuJVy+VGen1qCsUrXixN776gnaT+D4vnJp8F+dMz7ife4F/4+ wWaooH7WYHSA6yQyp95qwbiQZG89gR9fxEtG4zK3gaHttCAIZJUle1sqYQUXrePZ QvMbXKDKDkFL6WQDpVW0mXPbeIxnZzxSWsgvF17KPQWU2PGg4u/1AiQEntNItcgK syfM38UJxNncNy1OLKaiVLKu5jZ8xPD6jMJYGGTent4WephNkYv8NKLWZk6/zADC BTytiuUuBLWIHRABbfu8UpeQZrHdGqQm/gAoz3DMnpRxJiKt9egftHknrpSUCNv9 pHQ3dB1c8achJ8wVsSpzU8gGtn+RpA== =I+uB -----END PGP SIGNATURE----- --uuestpxaqacueghg--