Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1294850pxb; Sat, 17 Apr 2021 12:53:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylBzdQMA0A8TuSrgam0XtNkz0uN/CEFB6Z4IkJNAY+W4skxrdl9Seg7oTKZhNc7iKNzCQZ X-Received: by 2002:a05:6402:4395:: with SMTP id o21mr16717630edc.22.1618689235564; Sat, 17 Apr 2021 12:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618689235; cv=none; d=google.com; s=arc-20160816; b=s44EYXAQTaCyBcD1mTNY4ueS0iWgBMqzuSdGKugHUrQvNoRM8Jxv56tg41GRqzq6i4 ad6OJe8/cysBF0+rK5sr29hDUmoDwH0liXjm3+w5WoKFtMQeNrbI4rGwvo9/zZX4mpEz SMpNPA+XQnL0cneu4rIHJJCmEwwR4ESYrdltzmlkEDvVT9h9WuTBLFwFkt9a3TYLlFeW 2PmcjgA2POcA0WHeicQSalZtb2jZMxLR0JFlrTRaGTKos5Wu2wW1X7fZtxIlexLSJ2KS DEt2kiTNhtfe0kh47CIhMfifiQqoUgjzJthxAg2JnbO46+kiP/XzwmenmVbwU+w4pbuK /KRA== 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=DbUIsSnSP9frnMwqecluKDJKl4x1YtwvgpWaPUjxGy0=; b=AcPmCt971nRowOrcW349vAfQfCKfM1Bn0+lAqxfYhB8DDrp7pp2BfPq12vAB7sMI2m 0mljVanDT9tt7bSic7caAipiAEIfztegtkDFahCw9Pp+Vjzk17OSQgBx1kyosDTqMbnY 40NNSbmzLkRgDokFlBPNTvvzW+ekKIRqtFhB9OV9xvhyV+lfVCOQ15gBBUAUCpdeqkA1 6+Gy8a3ch1ezMJu8/o+9Nujpbf12aS0qw1L4BJpquh76OjeLPWhMShO2OWq9gX+jRPbL 0zsFRsx9SQeqquq0oIDc7uwGPnHXl1T8IKXojTtVHUuviDbPYEUtT93nAsxEbO7odop1 gyAw== 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 d26si7381639ejt.459.2021.04.17.12.53.32; Sat, 17 Apr 2021 12:53:55 -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 S237016AbhDQTw0 (ORCPT + 99 others); Sat, 17 Apr 2021 15:52:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236718AbhDQTw0 (ORCPT ); Sat, 17 Apr 2021 15:52:26 -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 739F5C061574 for ; Sat, 17 Apr 2021 12:51:59 -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 1lXqyv-0006zB-Tz; Sat, 17 Apr 2021 21:51:53 +0200 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lXqyv-0003Mx-8X; Sat, 17 Apr 2021 21:51:53 +0200 Date: Sat, 17 Apr 2021 21:51:50 +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 1/8] pwm: pca9685: Switch to atomic API Message-ID: <20210417195150.5fdcpxfbasp4y264@pengutronix.de> References: <20210415121455.39536-1-clemens.gruber@pqgruber.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ff2fxzbhzbuvas53" Content-Disposition: inline In-Reply-To: <20210415121455.39536-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 --ff2fxzbhzbuvas53 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 15, 2021 at 02:14:48PM +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) >=20 > Signed-off-by: Clemens Gruber (I sent my ack to v8 before, but indeed this was the version I intended to ack) Acked-by: Uwe Kleine-K=F6nig --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --ff2fxzbhzbuvas53 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmB7PFMACgkQwfwUeK3K 7AkQFAf7Bf/gV7qahl2vQAfHsWkDcCGR5BJfoJKbbHbYDThTeEVojA/x8LgbaH9g QThc4OEKrQvwaikwerXHKTbDXWZkGY3rGuf6aAzOg9Ue3BplgNSovkdePziavycG E16uyTFhuupd3AEJ0lkBcsDG6TFJ4jyD0LEJP3EJNpHcXpZCV1fzBqVNa8kH14Gj DyUkQqfvJUc0bhuGV1PSn7WjFJyOIDFRFfTamq/Qn/cVBV9Pljz+kR6r1+OJS/Gu qvZPBSoQ/6Vv+nZiLb9FNPvfAd4P1e9ip6+mA1BZ6J3DQVEkkX2JLZh2LVMPSPnY c0plbd/hg15dojJWZglR/afI/DjrwA== =k/RB -----END PGP SIGNATURE----- --ff2fxzbhzbuvas53--