Received: by 2002:a05:6520:3645:b029:c0:f950:43e0 with SMTP id l5csp6292862lki; Thu, 4 Mar 2021 09:24:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxeZDEHEj71/h5/r+R/HxKKpgfyxWdM+WZ9VP7Lso/1ciC/6dX74ZpQN6FtxQ9yXesFsHb X-Received: by 2002:a17:906:3648:: with SMTP id r8mr5619993ejb.58.1614878647373; Thu, 04 Mar 2021 09:24:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614878647; cv=none; d=google.com; s=arc-20160816; b=SO3bCQSnK7JmO0F1zPCiLWQD93PKmvT0dTcvm7k6MpITry6CqdpHZ1YPh/Xd0uhwfs c22rYOc0gE0FK2CmyXFBlk7MTLhYLpPfmeKTQZqpkQz+wMmLgVQdwtOkgnBUR8ZZREcu s2oTdL8rCUJ4Hyi0r5sNKklucDuBJFNcv0v4r+RtRYLxVBPsCMRYUi3i/TCMnxE70LdN W3pdXH6K2sUKgE83dtfgckcjWPD1l0uRP11xs+vc4nZDQeOVwoJhG1qx+/z3quw6riPd Ol+Ax3UcNwAbdqkQ8vztzHhDPPZ/sYg2v5Mg/ashYjDaqTPWNBsVEUkSxz4X3TkVoMgp cf2w== 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=zi1uK+zkf8Cgx3t0AT2qIAjy7nM1fwlN1EPUn/BXkj8=; b=A+esH4f5g9IE4njqzRdv4c7gIEOejRtjvxT1IBx+RyicToR6KZXWBkSa5Duf3E9Mqi POPS0qh9jWT+Ae4b756KXJD2xuJoCx46gBRSovzgX0YPANFPJHXvIMDW3SqAh+wJko7y KO1TE75nN1oQX1CHrDg1XjuRtCq6JKqQGbDqtptAStJgx/mX79FSw+pZ2HLPJovHC0R8 nQ7f4FVPV3xOpNHWxSMsAbQT+XPkArExghzs2/XTtLXGYyQl8zaF1+Bgool1cbgrewvL NUIgLbvXk3eJTWut/0uoCJuto1Uht9tiXpkRhilqFwLy0t/lFWy5CFCh8YqmEtjgTsYO 9IMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pqgruber.com header.s=mail header.b=n5LjpydT; 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 s19si19145edc.275.2021.03.04.09.23.43; Thu, 04 Mar 2021 09:24:07 -0800 (PST) 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=n5LjpydT; 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 S241130AbhCDNLr (ORCPT + 99 others); Thu, 4 Mar 2021 08:11:47 -0500 Received: from mail.pqgruber.com ([52.59.78.55]:39460 "EHLO mail.pqgruber.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241136AbhCDNLj (ORCPT ); Thu, 4 Mar 2021 08:11:39 -0500 Received: from workstation.tuxnet (213-47-165-233.cable.dynamic.surfer.at [213.47.165.233]) by mail.pqgruber.com (Postfix) with ESMTPSA id A3803C72819; Thu, 4 Mar 2021 14:10:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqgruber.com; s=mail; t=1614863458; bh=zi1uK+zkf8Cgx3t0AT2qIAjy7nM1fwlN1EPUn/BXkj8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n5LjpydTpkWqoXhs832+EtisbJ5GibaVksKmxZyFKAauph4aC8VxhiWOkd+DXvwWF dNDytUlNJOSPRVNWFfYGsKU6gyJAdW7WgM9vBQeC07c2PYOtzQ6QTgIs9Wcomx1OPY U9Gw9ypaJxPqabegMrGO/ZKrXAB7tgnwpDpcTc1o= Date: Thu, 4 Mar 2021 14:10:56 +0100 From: Clemens Gruber To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Sven Van Asbroeck , linux-pwm@vger.kernel.org, Thierry Reding , Lee Jones , Linux Kernel Mailing List , Mika Westerberg , David Jander Subject: Re: [PATCH v5 1/7] pwm: pca9685: Switch to atomic API Message-ID: References: <20201215212228.185517-1-clemens.gruber@pqgruber.com> <20210301214115.xolncig676tgnxwn@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210301214115.xolncig676tgnxwn@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Uwe, On Mon, Mar 01, 2021 at 10:41:15PM +0100, Uwe Kleine-K?nig wrote: > On Thu, Dec 17, 2020 at 12:10:10PM -0500, Sven Van Asbroeck wrote: > > On Thu, Dec 17, 2020 at 11:48 AM Clemens Gruber > > wrote: > > > > > > I can initialize the values to 0 of course and check the file for other > > > places with missing initializations. > > > > > > Or would it be better to check the return codes of regmap_read/write in > > > such cases? I'm not sure. > > > > I think that checking the regmap_read/write return values is overkill > > in this driver. These functions can't realistically fail, except if the i2c > > bus is bad, i.e. h/w failure or intermittency. And that's an externality > > which I believe we can ignore. > > > > Maybe Thierry or Uwe have further insights here. > > I'm a fan of full checking, but I'm not sure what's Thierry's position > on that. > > My reasoning is: If the bus is bad and a request to modify the PWM fails > because of that, the PWM consumer probably wants to know. I see. Then I'd suggest that we postpone adding these checks until we get a response from Thierry and if he agrees with you, we could add these checks in a separate patch series? Thanks, Clemens