Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1297677pxb; Sat, 17 Apr 2021 13:00:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXZaIwjbpnTh50oPxZqR9G3KdJUvmuuFc6dIyQDSYmeMiP0C2GstshNoEHkn8fNx3ADieo X-Received: by 2002:a17:906:6a41:: with SMTP id n1mr13286078ejs.401.1618689632467; Sat, 17 Apr 2021 13:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618689632; cv=none; d=google.com; s=arc-20160816; b=pQOikavU3SC4h38xBQPU1za0BwlPRdupNDQ1Ga0zW5bHD2qyQ1A3CJ6NXY1h1GgAvp zK+WOT6vPqsQu/1BiEa2w8/UgK9g/1cD9vF7oNbPuY03QCmk/KUvinShEp+DgVeqsFXE 5d76he8RTZ7Wrzdlvu1qoEjkAZkKKYE68SJ35TVB4PWxLUQd5VfcvrGSLCgKeadGfFkF UV5l2JnBljCKZiK7CS+5CQ0LBdhLvXQGzm1L/gapAUvUgm2PBQpdppDRhl360cVk7C/a s4CPEqL5aPp67Rpps0PGWkfSGZvaKWAR0DygeQzzFMuc6eqFqMZ5zHA58SbaaqwY6x7j SWyw== 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=2iFMGEOEB+LFEx5FeCTNqbDSICSBNWGaDSvHKC0TvmY=; b=PCnAKynGk0CIptxIsdXQKHKhnRaAs1By1O02npzxoZjuvRNtza4XhIms6iIZZKJaVt BbPWNFZBQhsQsC0swT8BMFZBaDaH97kmdXItyhFRFaoGKRd4chSevT6/cP08uW/9npRW HkflqtgyoaNXUiL3qYYZjKFyqBkgwW/syXnDU7FVNZA5mL2zODE7AUdKvcfXi+dCLcFm sOh/+K4VigqY6OzNPFfBIEd6505XYkzCrtr50EtWUDvLK4wWdWTfF8lfAq5s/iLwZVu9 PvcixhBBBQzJle4Hw0pVgklt2tagAo+tZPOWsRuXwLS8IPwsj1xDOL6SgrUWpwz+clhN pqtQ== 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 g23si8028164edv.289.2021.04.17.13.00.09; Sat, 17 Apr 2021 13:00:32 -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 S237057AbhDQT7T (ORCPT + 99 others); Sat, 17 Apr 2021 15:59:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236956AbhDQT7S (ORCPT ); Sat, 17 Apr 2021 15:59:18 -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 8E688C061574 for ; Sat, 17 Apr 2021 12:58:51 -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 1lXr5c-0007OM-5F; Sat, 17 Apr 2021 21:58:48 +0200 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lXr5b-0003Wv-Rt; Sat, 17 Apr 2021 21:58:47 +0200 Date: Sat, 17 Apr 2021 21:58:47 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Clemens Gruber Cc: linux-pwm@vger.kernel.org, Thierry Reding , Sven Van Asbroeck , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v9 7/8] pwm: pca9685: Restrict period change for enabled PWMs Message-ID: <20210417195847.ejhzoh34dqtroq2p@pengutronix.de> References: <20210415121455.39536-1-clemens.gruber@pqgruber.com> <20210415121455.39536-7-clemens.gruber@pqgruber.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zslt6uzl2w3dgpsx" Content-Disposition: inline In-Reply-To: <20210415121455.39536-7-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 --zslt6uzl2w3dgpsx Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 15, 2021 at 02:14:54PM +0200, Clemens Gruber wrote: > Previously, the last used PWM channel could change the global prescale > setting, even if other channels are already in use. >=20 > Fix it by only allowing the first enabled PWM to change the global > chip-wide prescale setting. If there is more than one channel in use, > the prescale settings resulting from the chosen periods must match. >=20 > GPIOs do not count as enabled PWMs as they are not using the prescaler > and can't change it. >=20 > Signed-off-by: Clemens Gruber Acked-by: Uwe Kleine-K=F6nig Thanks Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --zslt6uzl2w3dgpsx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmB7PfQACgkQwfwUeK3K 7AnbWgf+Kn7ggz++9uixZgHv9L5JqCQ9rKu3vVNBo+MgemkQv2Crr50rOG2p1t+e 2tMxIbOysuIQbWzHugTr+FDoXKu0O2UAgti5HDaWHxdUKaPScespf6Rw+cElPUAh kX6Oss/MOwEBtp3JiW7s0LMcpuC+S+xisJBD8iJVmliJH8U773pERvjRwkGe/zVx uqWllDFYLEH4bKNK6WHlE7uuxp2+L/WziGy6gYlNGaSQkPgT2aPRlXf5dgTzg+Mc UusGEFXNlat/SViLZ++Gm56W6Vi03GX9oSJLANYiZ3QhATxbGRh0iDDZshdBg0vN VM+9xVXRW8/0q+AhZx+WVigtXHV0SQ== =quLN -----END PGP SIGNATURE----- --zslt6uzl2w3dgpsx--