From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9FC9EC433B4 for ; Sat, 17 Apr 2021 15:37:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 725E960FE6 for ; Sat, 17 Apr 2021 15:37:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236634AbhDQPiE (ORCPT ); Sat, 17 Apr 2021 11:38:04 -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--