Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3721998pxf; Mon, 29 Mar 2021 09:36:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+Qjapg89rjAdZO5POIumCIUy/RcaGM/yPOD0lHoek64fB2o+PUODkoF5xapofTh2kA2dt X-Received: by 2002:a05:6402:d07:: with SMTP id eb7mr28624608edb.242.1617035764328; Mon, 29 Mar 2021 09:36:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617035764; cv=none; d=google.com; s=arc-20160816; b=GTHRXGid0+4vGkXUkB3TUisMrtkaJHKrea7MgWnFgYa2Us8CFnLMQ0O6+VJShK/0Fd 1nUSugELPmMSEPxdcrhwd4YKWa//Onud9J3GFEiiXkMBqjXtgnuNq5Thfg2O3poWFMbe on49++sORbw/eda8CmLcR+KiOHfXzLKTOh9G/2px+HfQe1rQS1+loAH496UJza7Zuh3s 5spAs9O06Kkk0sAslW9tgb5QBtF62KmZH0SDyQrcmu+Enp/SI3Bzcdo+OJJBhQJZXe2s qRwDRiX7gEiMBBUf6rWg8Z5YBw4FPbAhV59y+WOmUxzObWxs87iC8Xouz2lY9mx7C6dE WJ6Q== 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=Xn3IzZFIpw6xK5uOfcTm61FzAKQLeGT60T6kbXvT9go=; b=FuqVjjAv+/DpBRmAVeB3rkSj2mYEZZaw2lr/PFja3Mdp6jPYRgec+VfqRFvk/XnbHX Vd13BxLnfL326bgu7uYO811Ue9BLCrBo8Y/GH9EoLDyMvhJo24bdyNyiLBmewCeerbgl mQIdBTlBZJiHvS63PljfdYk4mMUNLt9YKmYQhBye9n+hXoSvigMQ6n7xSn8lwGKtr4Cn IsZjSG7F2FfBvS8sQwuUFA26lZhFQm8Z5IRnkI8Glw9w6pS/IIOzFVNBFPkpow8q3FPa CcCoK85/+HOcEvxveWUHbnWUnFJtONDKdkhWGVjHSxhmoVfM2eFX7KUEU6q8ia9IUffE 28YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pqgruber.com header.s=mail header.b=Ch9a6bgZ; 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 ia10si13503249ejc.92.2021.03.29.09.35.41; Mon, 29 Mar 2021 09:36:04 -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=Ch9a6bgZ; 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 S230323AbhC2QeK (ORCPT + 99 others); Mon, 29 Mar 2021 12:34:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbhC2Qd7 (ORCPT ); Mon, 29 Mar 2021 12:33:59 -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 3B48AC061574; Mon, 29 Mar 2021 09:33:59 -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 BC3F8C72850; Mon, 29 Mar 2021 18:33:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqgruber.com; s=mail; t=1617035638; bh=Xn3IzZFIpw6xK5uOfcTm61FzAKQLeGT60T6kbXvT9go=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ch9a6bgZPtQEXlrWuSed3DDKfqbmzuoRNNTrv8nU6/BOhfwepWVTp4CGYhTo9POR6 pSUjNYuDydHqIGTq2pXthYuhkm4NbH8Qua9hAGBqCq/AXbIgWa2ejTWeqVueYn5pUP aFvRBtD0B6MlrmFinbfP+mgJh7WHNdebi5SnX9LQ= Date: Mon, 29 Mar 2021 18:33:56 +0200 From: Clemens Gruber To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: linux-pwm@vger.kernel.org, Thierry Reding , Sven Van Asbroeck , linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH v6 2/7] pwm: pca9685: Support hardware readout Message-ID: References: <20210329125707.182732-1-clemens.gruber@pqgruber.com> <20210329125707.182732-2-clemens.gruber@pqgruber.com> <20210329155140.4gjtsw2qbpylv77z@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210329155140.4gjtsw2qbpylv77z@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Uwe, On Mon, Mar 29, 2021 at 05:51:40PM +0200, Uwe Kleine-K?nig wrote: > Hello Clemens, > > On Mon, Mar 29, 2021 at 02:57:02PM +0200, Clemens Gruber wrote: > > The hardware readout may return slightly different values than those > > that were set in apply due to the limited range of possible prescale and > > counter register values. > > This is fine and for most hardware that's not preventable. My > requirement here is that > > .get_state(pwm, &state); > .apply_state(pwm, &state); > > doesn't yield any changes. Yes, that would not change anything. Thanks, Clemens