Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp390685pxy; Thu, 22 Apr 2021 04:41:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1uXDBrM4ebuvg1OdeH4lVf6lToocUHVo36YFWwEU5ozbKuBT1dNMvOM2lN/UFY3kduao0 X-Received: by 2002:a17:906:d8c:: with SMTP id m12mr2964232eji.347.1619091688645; Thu, 22 Apr 2021 04:41:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619091688; cv=none; d=google.com; s=arc-20160816; b=zU7F3NuiVHj6XAWbJ8sgxGpMDfiEscvtCQoyvtm7qL6voeKAbboHtXyv7w129O5e6B C+vmnzbA4QJexffItYqHC/oCLGbNA9l0cuH29tWznNw/guuk3gGpTNdNmrGpdtkt5UTX ngcMYZspwBpL2nY1nSdJX6/5uD40Ta7mG11KfwJmIy6TyYHYhf95bKunnWNyp4VtL7VR Rs7wjTAQZvoOG0QiSO69Q0hKeF5bJEtfcyZ+pg6085LV3tOuk3jkCq79Ren9d3SZa1+t 3QbyDORHtAfRILuubmGk5DPowmwaZsF0XKhhPj00Cf6Y/+MjOb5ecLkY/gzqEtJW/PiS yvdQ== 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=MMc8JCRyxFdvyYZeG7GEnCEXw7rR9PccoTmcF4kV0r4=; b=X0vXSly3m3ZWJxdTDNGlyrRVjCo53Bhv9R9bvWosV0mgxI/bK0Yz6p4Zc7iU0P4Eq1 4KaZJm62cz63KcT+TKOlnjpzINSJZQHzomouPGIXqIdtJxj4QhQ1Cw7I9uswvIWVt1wY mo41CfVn9reATwIjZG4ZUPQ5Hz/FeDOshwIKe9sUIOGB2LZ905Ei3qlKu1HhWg/7wDj6 By2Wk+QZodw/ypucXGNiswQ02+VWSWKBVDKKIbnyrb93eaiNsgrSQXcc1lIWJSTjoRc/ cStQmZEYJ+dGMnCNZ2KP1jmhBYxUMdbj99w3LZJ9UW0M9tmlhHaizmG1Nhgk9xqwXjIK iESA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pqgruber.com header.s=mail header.b=H+J54Wc7; 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 t20si2101484edr.560.2021.04.22.04.41.05; Thu, 22 Apr 2021 04:41:28 -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=H+J54Wc7; 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 S236025AbhDVLjk (ORCPT + 99 others); Thu, 22 Apr 2021 07:39:40 -0400 Received: from mail.pqgruber.com ([52.59.78.55]:51892 "EHLO mail.pqgruber.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235955AbhDVLji (ORCPT ); Thu, 22 Apr 2021 07:39:38 -0400 Received: from workstation.tuxnet (213-47-165-233.cable.dynamic.surfer.at [213.47.165.233]) by mail.pqgruber.com (Postfix) with ESMTPSA id AFBCEC725CF; Thu, 22 Apr 2021 13:39:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqgruber.com; s=mail; t=1619091542; bh=MMc8JCRyxFdvyYZeG7GEnCEXw7rR9PccoTmcF4kV0r4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H+J54Wc7PrEMXfoeoCjFhJxxAfeJCivLZ6z5Ojh7TOV8d77gLwNy20U0Nb0G2gu8k 1Cp2BVzGmVI1QtiHvHPRThjYvB6evobSZTnH68bI3dW1GzF3HcDCMGTR99bSOYd2ki 2FcoTdlESD7EGcuUbODj/pU7vfOkJOcY7wstsLIQ= Date: Thu, 22 Apr 2021 13:39:01 +0200 From: Clemens Gruber To: Thierry Reding Cc: linux-pwm@vger.kernel.org, Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , 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: References: <20210415121455.39536-1-clemens.gruber@pqgruber.com> <20210417195150.5fdcpxfbasp4y264@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210417195150.5fdcpxfbasp4y264@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 17, 2021 at 09:51:50PM +0200, Uwe Kleine-K?nig wrote: > 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=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) > > > > 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?nig Thierry: Do you think we can get patches 1 to 3 into 5.13-rc1? Thanks, Clemens