Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1203942pxb; Sat, 17 Apr 2021 09:42:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxyx1/K9q1Z+lDoaVFzBo39VLhvJIGzfflPxDR/oLBhMTEeK6umWmHgQ/Q2Xw4jw3OPgE9 X-Received: by 2002:a63:e903:: with SMTP id i3mr4095688pgh.374.1618677766182; Sat, 17 Apr 2021 09:42:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618677766; cv=none; d=google.com; s=arc-20160816; b=AYNj2351OYXk3uuT/afmZsju1DWZ00hnBC+weVJQ4WqI0EGzIPNG99X/7uUKpyCVYg cAebpnpbFW2E0Fx1wGXr2wS++elZL7bcPwoRMcsnoeOuLyws/ydWSm0wrP/V9VOf6S2p ZFZXP8+VwPfzgZGJ+anUWwaH+9NzIRiFGGkzc//cAYo98avt7FzcgYbENiMU1K1g44Z4 WBYAjpzm9WSDVyhFA5kx5O2SyPyjJpFd9SqjHeNlo9rF7ul4BLHiMNkmNokgPMEp3DJQ QT7YY/yrpC8osoYFH5okHGE+KfUTWemIsLmOuaRieVm0CWtuTe+TFiAqBMXf1s63F9dr rmvQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=RmhXOMCFFCbce605ZIbZPj9mHR2sZMVr+GIMZbzQjv8=; b=ZroufNZVlvvaRPAbg1hrQs9TESQuHxdq1NJAftBPeN0M2wW3/r5fGmhxU17wltn/lr BQm0UXQideNtbQiIzFR61eti+uz3iXCKghfFbOTIB59pb97PxOPxtZg+9JR2xey9MC3b Xxfcc47f5bNLZ+XfweeRE9cTdio9Vkoyg6rGHlQDZk1X3haHI5Y8lFtX+vhS53ztUIbz +2DeOgNpakHTtTipV6p3SKdI4nwashco/3XcYDRr5ckOclQsRE4BF2IL3FSwvjvQhxVv +GcF6c8e/hlb7NxJ7DynEryCRdF5dJOakGCvPE1Db10sEpHtr1dtPRqtfXPE9YST0RYA bq5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pqgruber.com header.s=mail header.b=IPxU1qS2; 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; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=pqgruber.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si10356059pjk.54.2021.04.17.09.42.34; Sat, 17 Apr 2021 09:42:46 -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; dkim=pass header.i=@pqgruber.com header.s=mail header.b=IPxU1qS2; 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; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=pqgruber.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236676AbhDQQlK (ORCPT + 99 others); Sat, 17 Apr 2021 12:41:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236665AbhDQQlK (ORCPT ); Sat, 17 Apr 2021 12:41:10 -0400 Received: from mail.pqgruber.com (mail.pqgruber.com [IPv6:2a05:d014:575:f70b:4f2c:8f1d:40c4:b13e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56DC0C061574; Sat, 17 Apr 2021 09:40:43 -0700 (PDT) Received: from workstation.tuxnet (213-47-165-233.cable.dynamic.surfer.at [213.47.165.233]) by mail.pqgruber.com (Postfix) with ESMTPSA id 9F41CC725D8; Sat, 17 Apr 2021 18:40:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqgruber.com; s=mail; t=1618677641; bh=RmhXOMCFFCbce605ZIbZPj9mHR2sZMVr+GIMZbzQjv8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IPxU1qS2JQXMzTWtfWiwsM7n21Ahu6UzIOMp2QGzj9UAPQwRduji1PDlM2rNt6nOj ms8PbzKUgjXC2Xz8zKDfVN4KKxG+7ESy73YaG/4r3PPmOvldfZIw+OD5GDuhJXXnD1 21oosYNzdL/xumg3nPoCbxYYw58F7iokMJUP6jiw= Date: Sat, 17 Apr 2021 18:40:40 +0200 From: Clemens Gruber To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= 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: References: <20210412132745.76609-1-clemens.gruber@pqgruber.com> <20210417153728.eohhphmtm6qf26y4@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210417153728.eohhphmtm6qf26y4@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sat, Apr 17, 2021 at 05:37:28PM +0200, Uwe Kleine-K?nig wrote: > 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=0, off=0, which is not allowed according > > to the datasheet > > - The OFF registers were reset to 0 in probe, which could lead to the > > forbidden on=0, off=0. 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?nig Thanks, but there is a newer version v9, I assume your acks are meant for the newer one? Clemens