Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1170162pxb; Sat, 17 Apr 2021 08:40:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKMUQR8oKomyejxcnCQ2aiz7wsN2xRwQRHFyXy51+utGFlsQXgnJ/mwaTzjXGnQ9AiFMZK X-Received: by 2002:a17:906:a052:: with SMTP id bg18mr13706912ejb.18.1618674058172; Sat, 17 Apr 2021 08:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618674058; cv=none; d=google.com; s=arc-20160816; b=jHgIHEpeInJBua8p++59x9hO83C7TIkUqSxKWgu5OunyfnuyklcnrlvZdpo5eC1vfM h7HHR0JUNQuqdtzyq7tIodsUDgilhb2xTDxcNGXk3m38Q7iEZQcVD/HLmvGXECwPidoi pxXATJtTlkTL8+8BOgJRCcpT2e5Dxgw/RhuElhrMbYoM24/UUfSL8sv3RtFNONxNqzgY sSoQNs7L8hlgGbbgGdARR1hzdx7DA6YejZIhN8RxzGfKdtYlCQV4AGPvFiFmA9w29Ddr 5+UNRp+TAlFEN03/M7/+0Zg43S3VhG5uYlXmyPN8fOrwpSbHZL26GXAGvtwfKMjq4E2i 5olg== 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=XGHJwZCo0248t092wff114Bjo+W6yHCJ0x5a50oE+5o=; b=E0tmGMEA7IRyBJlZuosSISWK39AYYrYfOIOzIz9ZwXDN0336ZF+qrrY6mujan0Ys7h Q2rw32osjLfumL+UA/AT0YO2/gagzRKS8B1RZHL+SLu3dlRzgA4bGheobp7TQUxUPrVj p3uTOVss6SW5BxF3SVH69u5vM701ig3stXeMJ46dBGpxgxB7R9yug4sVdWWHmXqTHhVv FrY3QvGSsDk+xRoRXttff/DH+u4Rz7DzUL5gSH4p5yytz/iGInlfICJG9UBkY+rMpIYb eyWdjLjZkPeXN3kU2xLm0gPAiqHzhCJX1bxZFeU2WrtNfG9PwIC+EQi0GB2ZBrcfSvnk bBfw== 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 z2si7088807edx.455.2021.04.17.08.40.35; Sat, 17 Apr 2021 08:40: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 S236627AbhDQPiD (ORCPT + 99 others); Sat, 17 Apr 2021 11:38:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236287AbhDQPiD (ORCPT ); Sat, 17 Apr 2021 11:38:03 -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 F31BAC061574 for ; Sat, 17 Apr 2021 08:37:36 -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 1lXn0k-0002O5-3p; Sat, 17 Apr 2021 17:37:30 +0200 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lXn0i-00061s-I3; Sat, 17 Apr 2021 17:37:28 +0200 Date: Sat, 17 Apr 2021 17:37:28 +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 v8 1/8] pwm: pca9685: Switch to atomic API Message-ID: <20210417153728.eohhphmtm6qf26y4@pengutronix.de> References: <20210412132745.76609-1-clemens.gruber@pqgruber.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="54aqtxtziy54ce7u" Content-Disposition: inline In-Reply-To: <20210412132745.76609-1-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 --54aqtxtziy54ce7u Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 12, 2021 at 03:27:38PM +0200, Clemens Gruber wrote: > The switch to the atomic API goes hand in hand with a few fixes to > previously experienced issues: > - The duty cycle is no longer lost after disable/enable (previously the > OFF registers were cleared in disable and the user was required to > call config to restore the duty cycle settings) > - If one sets a period resulting in the same prescale register value, > the sleep and write to the register is now skipped > - Previously, only the full ON bit was toggled in GPIO mode (and full > OFF cleared if set to high), which could result in both full OFF and > full ON not being set and on=3D0, off=3D0, which is not allowed accordi= ng > to the datasheet > - The OFF registers were reset to 0 in probe, which could lead to the > forbidden on=3D0, off=3D0. Fixed by resetting to POR default (full OFF) I didn't recheck all details, but the patch is definitively an improvement, so: Acked-by: Uwe Kleine-K=F6nig Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --54aqtxtziy54ce7u Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmB7ALUACgkQwfwUeK3K 7AlVdggAoS7BHRyKl6WFJouJ75w3XjMgnOTjufwOF5iYwFx58DiepBgqt1jJKVrD YXf0on8BN0vflcK9RkpUwZhRHz/FB9gOCv+9spRNreutxXl5v2QI3u+inQF5cnhb xaR9owxjEso4FaVvWdeKzK9I6wM2b149CxYZ2hwOxD4dk+1LNGqZ1CRPcGSUc7TE T/R2TDBa3UYEgzRmNawWj2wGp+VTHWdydwd1JpKG2q1tU/SasGvQkXucIhhXgxb6 eH47hHjhQaDhaVR+NHApJ08srwd2oZIU9y2wXS3ypshq2i6mu+9VcCkpHpqj2oYP 3loztBlWhwujp8bKZheuxAnoDf9Kwg== =v9h2 -----END PGP SIGNATURE----- --54aqtxtziy54ce7u--