Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp921890pxf; Wed, 7 Apr 2021 15:07:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFFfydb1Lz5ZxzqsgLr7NE5PNmhsSACDI7zK0+ukyUwhclCRT5pYkzY7dNq6Hsq886RDvC X-Received: by 2002:a17:906:19d9:: with SMTP id h25mr6448433ejd.453.1617833275814; Wed, 07 Apr 2021 15:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617833275; cv=none; d=google.com; s=arc-20160816; b=tm7uv113Rpg1U3Zq7skmJBy6DLkdkgWYH5NvnS4ia/oA/FbA2hKFoESzhDNGijsnVX Ey0D8Rbc97c+XS/1ieJFdT8bBgX+hGvTdN+sM2nnI8rj1L3/LeXvzhcbEXQKWTn4RKQx DBIGyyMJYA/82FtXsJ73WhbFvkrQg4okKFyrLsVzdGxiBgTNh9uJ6oROIMHBlkZEwjV4 diBOaje4etAp6AHL+EjI63EG5hQv18K+FsKdkTQaFOHEukmJ6nJa+q6ScxMxugcVT3St udaZk9A/IvKcbuZFYXvgupq3Qv741oxCuqIa8wv3H/DuPz35pM17Q0J4WMwKzqIolHmN TC/A== 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=mGcaTRKG+lax3gIaa/OjUKFn/A93Ij4WBYAqlblO84c=; b=CzDiQTQ/scGQppi5LJMzOqpaUe4bDvN6FScjHNF90TfUQ0ii1Mel9vN/26MtHB1B6a V/vJeMHhnnHfITh7bvTEQMSsw4nbW/DXBSbCzYpIc/hmkpD1T936lT9YMQaNRE6PJhbL yLEewHZaF3V2gymjAJoLG6wUVorQBuaJGWY46xWl9UWth3Sw8xLg3XCZ1ZmzFDe4iUnu +F48cKV1ybjH+ZvMf+zcoSECrKyFvwzV0k7bIeNesmGm8f5AQmkefBJAc1eAcu1Jhif6 VIszA2oRlI8KpXue4nBFE8ttdGc2NudhMTFtWYTFqi/2F+Og6EEuIrtljYWD+B52STkk JZ6w== 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 s18si12139422eji.443.2021.04.07.15.07.31; Wed, 07 Apr 2021 15:07:55 -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; 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 S233988AbhDGVlr (ORCPT + 99 others); Wed, 7 Apr 2021 17:41:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233880AbhDGVlq (ORCPT ); Wed, 7 Apr 2021 17:41:46 -0400 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 AAC70C061760 for ; Wed, 7 Apr 2021 14:41:36 -0700 (PDT) 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 1lUFvX-0007ju-B9; Wed, 07 Apr 2021 23:41:31 +0200 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lUFvX-0002BI-1b; Wed, 07 Apr 2021 23:41:31 +0200 Date: Wed, 7 Apr 2021 23:41:30 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Clemens Gruber Cc: linux-pwm@vger.kernel.org, Thierry Reding , Sven Van Asbroeck , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 8/8] pwm: pca9685: Add error messages for failed regmap calls Message-ID: <20210407214130.6retlpofjppl3o53@pengutronix.de> References: <20210406164140.81423-1-clemens.gruber@pqgruber.com> <20210406164140.81423-8-clemens.gruber@pqgruber.com> <20210407061619.fl6ffos6csvgtnjh@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qnpc6ko75vlz4xpc" 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 --qnpc6ko75vlz4xpc Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Clemens, On Wed, Apr 07, 2021 at 10:47:45PM +0200, Clemens Gruber wrote: > On Wed, Apr 07, 2021 at 08:16:19AM +0200, Uwe Kleine-K=F6nig wrote: > > You didn't check all return codes? How did you select the calls to > > check? >=20 > No, because it would become a big mess and really obstruct readability > in my opinion. >=20 > So I chose some kind of middleground: > I decided to check the first regmap_read and regmap_write in probe and > return the error code if something goes wrong there. > If something goes wrong after probe, I only print an error message. >=20 > Is that acceptable? I wanted to have that in the commit log, but just noticed that I didn't read it carefully enough, it's already there. So if you change %d in the error messages to %pe I'm happy with this patch. Thanks Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --qnpc6ko75vlz4xpc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmBuJwMACgkQwfwUeK3K 7AkELQf/aPOL73PAnyQwBMySWiPeBzJKT5lSTj+3b2tF3IVXiaB8NRko/QK04BD0 i17P0PPHdoDFupi9dOJdhuHLB5jpDddRdYmnWtqBI7NV4czNehZOWvW4D43qnFt4 tpQp54oweioxbJSBn80SNeb+V+Y8dYZCOelo9aHsqtIH5FPVYYJZZkt/+OtiFtqD 6VhKq9QshFWXWZUN/7ICmdOtoMZMA00ZMDSLaz953AOYfG6TGmrVhoVzY5YofOuw GKQdf5INZp0xVfNHJDPWGsokkuqHE6G+YSuZYN4n6oen/5NcC9kmTdE1ON4+kQLu QhvrHd4GFgWn2ra7uTCvAb/IkhX/Fg== =RTFu -----END PGP SIGNATURE----- --qnpc6ko75vlz4xpc--