Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4224395pxb; Tue, 2 Mar 2021 09:33:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAIsf0a97T2n1dtOYSvG1Q/KgYmqLTe7x1YTgAQ4t1gYxCDLDBFj7UDM1p0QVFgut8fWx0 X-Received: by 2002:aa7:c84b:: with SMTP id g11mr21383660edt.169.1614706412813; Tue, 02 Mar 2021 09:33:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614706412; cv=none; d=google.com; s=arc-20160816; b=PR28rMteB1oz1AWd4R9exnon3s1AJInUadzTfKKyny9OMOKpJU6QyGTrMiPkAYcWuV NqdVdxhTCy/jkisHEfZHShLya50MEv7EVbE98O5F9IcEjuN4mdfkjjZSjkrWxPrk7TY6 LdnkZ3tBL65aWteR+/oiQ3VNH2M7XPsYVdI5AJeBHtLCTaKvPvW1lFa5V53EZMcO1T0v hHwBwCpUYdbWdPqkGYedsWhcvmZd5/vAZRfyeEy+os7TVUJlk+BKRdnrMEFStP28e5lq q/t5EyMbWbGzbDlNdhsd+A2G5LnzSqfQE2ho4AAeI0bgQ4lmvfUCCJe/mFzTK33wAvwR dLJQ== 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=ZZdBi+z66ToSuZMWrE00KFHg72NTR+wCrPMOIs43DJs=; b=k4Ckcdvrzhk6312gOKwLOiVN1eBHoVZI5aZayUyMVUXwpjjpxOOarYL9DBOIVulBli ldgOHXcONurh7uAq5JqC7mgSBMf02Yl8FZGo7plnmhxOrrHU0Qk4LPoU02vkSzynX/Hg Eco3cTZnXP3Pe3zEfxW3Anz2kIGPHpeT5mIPDsq9UCU++KtFhNS/tZUDi8elUjaxrXyb FJIW6VvSC7m80EkNCDUyQVsLpP5Fg3pdRMIazvw3RZ/YWIbJzJIKDuW96PIIJRhz/laG SdESsGk0m3s1J3MpjVtKsXsgtpxp/wV9Dxxn2YwsiqIB76jeLI1KDJLv4bSLR+iQao1n TO4A== 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 d26si13134975edu.160.2021.03.02.09.33.09; Tue, 02 Mar 2021 09:33:32 -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; 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 S1574887AbhCBDvb (ORCPT + 99 others); Mon, 1 Mar 2021 22:51:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244176AbhCAVnK (ORCPT ); Mon, 1 Mar 2021 16:43:10 -0500 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 A9C84C06178B for ; Mon, 1 Mar 2021 13:41:20 -0800 (PST) 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 1lGqI0-0002xf-66; Mon, 01 Mar 2021 22:41:16 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lGqHz-0000eG-FC; Mon, 01 Mar 2021 22:41:15 +0100 Date: Mon, 1 Mar 2021 22:41:15 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Sven Van Asbroeck Cc: Clemens Gruber , 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: <20210301214115.xolncig676tgnxwn@pengutronix.de> References: <20201215212228.185517-1-clemens.gruber@pqgruber.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6kszh3ywon4ute5k" Content-Disposition: inline In-Reply-To: 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 --6kszh3ywon4ute5k Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > I think that checking the regmap_read/write return values is overkill > in this driver. These functions can't realistically fail, except if the i= 2c > bus is bad, i.e. h/w failure or intermittency. And that's an externality > which I believe we can ignore. >=20 > 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. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --6kszh3ywon4ute5k Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmA9X3cACgkQwfwUeK3K 7AlrWAf+IoY5j0pCSD2uxjSOPPsQw0d+qZHf9gkrbmxtz5QZLAAB3pUMv1M0tk+r XDR1LP0+paIQXGmhF+CN9aLc2yIxap9ClaV4EBRN5eYFFdCmrPKdTyjYB2bBSkE1 1BahYAP+7ROrC3LIa0Dsi/ezq6ImEn1+mkcro28rW5YNHCLAqDzTx0ZybyYdtAJs t4N3md9wPyeJA4yC//K8ht9MnUu2vjCVMZL459C3H/Pu/RQCG1cDgNQVJhGv1auN sGhJ0PsIZc2pP8LkjqwLzTvNRgRQyni2ER5G8srycf7M58/sbajvzbt/yEBSDYXj EKcJocs9u3kDtRDA0Uxus2+o22lmMw== =TcHV -----END PGP SIGNATURE----- --6kszh3ywon4ute5k--