Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3433750pxf; Mon, 22 Mar 2021 06:26:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFulflPo1bQp++aSaGoKbUFafumBh5p2H1ADbQn0ti3H0FmM2QqYalWfv6sDl5kLw1zJhv X-Received: by 2002:a17:907:1119:: with SMTP id qu25mr4040348ejb.423.1616419618981; Mon, 22 Mar 2021 06:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616419618; cv=none; d=google.com; s=arc-20160816; b=M6e3OxgZ+f4FldFFvgJKdJkJMkNRQEQuqMLCT3OSO03yLEJ9mzeUqEJMIVEnwt3fz2 PwvBiv4i2FUmVN0ATsPgZu3wtqtmwZO4kJ7rLYRly7ncXm+ERf4z/LV7AUlYftb4hSLo LbF68nKuuj5uBfJCvgCXPfOFBsZHWThTivoWhsHntjQnobQM5XdMVQ3f5cLrwabmgv5e pOqizdYOFvjTAEIiFrABsUyW3UrOfYp62iCGOKJxtb094+RDbAn17uAiUMG27rbYSmXJ BjLmrtgCDrLnoETDWQ4bFda6jdYGSD+kskDNt1HGMV62ABgUQv0YBE3JFKFGSwTmOccE 2t6w== 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=ijqkPFUoioul3zOhVonSJNqGHc8V0nYGWmL7o/TPBNQ=; b=SZ5tBv1tRwv6tA/3KisNZGq0j+E08LgGSKVDrd/syOskC7xxgOKEvsqrdR/DudtQwH vjSH/6DqLrLQAnJzovAp6L65QK0fAcqlUYEmAq8RjxyQS0B8s9zKTtLymuHQur9oMbkR pLhuECkgcwdex/6Y0UPNGTeYli33uMVr9bRwGk2o/KFoecGFRcpr1/x4bfdKZluFhAV0 Vv9VzKUSI29IG1TZuaar3pt2p4cZEYXErr40DwA1w0qqnz2FIddOWyszm3fRCW1TcL5k +vqEKg8zpACtpleg/oVXZGPsxPsduxOcJI3inpZhDSpa0py2sIpe0QZwaLVaU+WTm35I gJNA== 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 p10si11090943eji.76.2021.03.22.06.26.37; Mon, 22 Mar 2021 06:26:58 -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 S230105AbhCVNZl (ORCPT + 99 others); Mon, 22 Mar 2021 09:25:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230156AbhCVNZL (ORCPT ); Mon, 22 Mar 2021 09:25:11 -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 4E579C061574 for ; Mon, 22 Mar 2021 06:25:10 -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 1lOKYN-0005Br-Co; Mon, 22 Mar 2021 14:25:07 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lOKYM-0002kG-Uw; Mon, 22 Mar 2021 14:25:06 +0100 Date: Mon, 22 Mar 2021 14:25:06 +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: <20210322132506.evsvoem4lk2nx6w7@pengutronix.de> References: <20210322112254.5mjkajkq3wnhgnd5@pengutronix.de> <20210322114826.ahwhbqxjxfg3nmrf@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3ff2acv277zzzeci" 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 --3ff2acv277zzzeci Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Mon, Mar 22, 2021 at 02:15:08PM +0200, Andy Shevchenko wrote: > On Mon, Mar 22, 2021 at 1:48 PM Uwe Kleine-K=F6nig > wrote: > > On Mon, Mar 22, 2021 at 01:40:57PM +0200, Andy Shevchenko wrote: > > > On Mon, Mar 22, 2021 at 1:22 PM Uwe Kleine-K=F6nig > > > wrote: > > > > 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) a= nd > > > > 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. > > > > > > But this won't work in the cases when we have a chip with a shared > > > settings for period and/or duty cycle. You will never have a user come > > > due to -EBUSY. > > > > That's wrong, the first consumer to enable the PWM (in software) is > > supposed to be able to change the settings. >=20 > If it's a critical PWM, how can you be allowed to do that? You seem to have a tight concept of a critical PWM. I don't, so I have problems following you. What is your picture about what is to be allowed/denied for a critical PWM? > And if so, what is the difference between resetting the device in this > case? The difference is that we have a consumer that knows what to do with the PWM then. > You may consider it as a change to the settings by the first > consumer. =2E. but without knowing if the first consumer is a backlight driver or a motor control it's hard to know if disabling the PWM is OK. So I like the concept of not doing anything until a process comes along that knows better. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --3ff2acv277zzzeci Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmBYmq8ACgkQwfwUeK3K 7AnxVwf9G6ddwK5P11tM3MvmQpjvCxy755jpKSmb8bJT3NMpjH0ZsQ7cJb5whjVb kvzpH+cvusvvWrpCYIB5/TJYn7oEbGT5HOndqemVivN2HDmBLxuviOY0YnsoeZkf SBgow32iipiiv912uW49WCUAoMrcxC0IIv7509P9fLQ4bH7+KC5a8FLl2dYl9pm6 YgaeNgnEwwq/vcMOu+UzVAREq0ffVP/4kHiVRWezRRogwTPKy+0gK7C2Z8JTxt64 JfF7EnamA36aoIakgqbnOmlrbp5a/tGAAt7bd0pNv/0aMOLsx7p1GlqD8fRUvcWk jyBA4prnQRdN5ZbasJfyKNxlCZLnYA== =fMXA -----END PGP SIGNATURE----- --3ff2acv277zzzeci--