Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1174145pxb; Sat, 17 Apr 2021 08:48:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx69HeHlzcJvtFuFJa6Xhg6yelEhulCcaeGOK2aTckxeaULMsOqRKR6Ylat6QcMxzUkHxRG X-Received: by 2002:a17:907:7690:: with SMTP id jv16mr13793033ejc.529.1618674523068; Sat, 17 Apr 2021 08:48:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618674523; cv=none; d=google.com; s=arc-20160816; b=pToSrY6qHeKbmsxyIGCuFG+4HPZAoNEKMT3rEOYEbsvJ3e/VYR9IxWQCzjYWooPe+T JAaNzUg41xWKCs0b2XskiRkQM/LPll5eOA8oItFICSHtyzCH0JjqFo1jOtUi4mqpGeLv mHEODk7IXv/ZWYVJlsuHmPIh7pAO3xMQbLqzlPFzZwb7FznKHhbzvyXsoT9V277XHpg7 WQLQZd10qRzL50U7lxasBJK5JsDA/f3YhOh6fNJiyi+6uQGWuwWPD0bIHgl7j4hI/i0L js86mvrRAdG2F/aNOVcIOuWbe9jMx3o8+0fYZdqGoglhk+3r8qPb5q/z4FPt9V1ro4GB FL/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=05G1Qeh1cmQrSAmfWSXTQ/2zeHNqlEe9ylS2I194I64=; b=YePguMzaYBSUtIWyNtbYr/fSK4vDBHkmkA8mXdkl11yZN2dfr5dro4gszgxBNGUCHm gI2srI2RpAEf3FZTbS8FqAzeCw1X78apNTn9H6SeWmVJzpCDjmrLZdkOInwr06eXvQbQ eK0voUnWkL96LevY8sYeWBiArYRtl4rzKPuH/H2iOXwZ86q/Qgo/WA81QSflEe04KsdL KNb4Vy0Ef+sVSAyn/oCp57w8Q2rcD8Nr1EbahcllmihH+dqSFtPhOg/QlBXsCZXRw12F iflB7yh+6n+cH0hJdSLGZ8shH5Lpce4rhjmuESsEZWlxGA8QrP5McrGRw7rCjHmCWg6z t8Nw== 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 p31si8478047edb.415.2021.04.17.08.48.19; Sat, 17 Apr 2021 08:48:43 -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 S236612AbhDQPrh (ORCPT + 99 others); Sat, 17 Apr 2021 11:47:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236608AbhDQPrg (ORCPT ); Sat, 17 Apr 2021 11:47:36 -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 4124AC061574 for ; Sat, 17 Apr 2021 08:47:10 -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 1lXnA2-0003Gp-N1; Sat, 17 Apr 2021 17:47:06 +0200 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lXnA2-0006JL-DK; Sat, 17 Apr 2021 17:47:06 +0200 Date: Sat, 17 Apr 2021 17:47:06 +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 v8 8/8] pwm: pca9685: Add error messages for failed regmap calls Message-ID: <20210417154706.viuhjndqxt42chi7@pengutronix.de> References: <20210412132745.76609-1-clemens.gruber@pqgruber.com> <20210412132745.76609-8-clemens.gruber@pqgruber.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rjyk2u3xdjjkrfxa" Content-Disposition: inline In-Reply-To: <20210412132745.76609-8-clemens.gruber@pqgruber.com> 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 --rjyk2u3xdjjkrfxa Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 12, 2021 at 03:27:45PM +0200, Clemens Gruber wrote: > Regmap operations can fail if the underlying subsystem is not working > properly (e.g. hogged I2C bus, etc.) > As this is useful information for the user, print an error message if it > happens. > Let probe fail if the first regmap_read or the first regmap_write fails. >=20 > Signed-off-by: Clemens Gruber Acked-by: Uwe Kleine-K=F6nig Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --rjyk2u3xdjjkrfxa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmB7AvcACgkQwfwUeK3K 7AmH7gf/XrBNOieEI7U/RlT+rH1YxyG7n0VcODOkFaZuaef4aUQDaCKVDWgHTf4Z l1j7o8NmN8+lx7KmM1r7TXq9j2rh2Z2/G46RVCnSzYLokDjz50ChOIiRHMqS7vhJ qBOZAju+nvi5UuPXSD9TGbLpLhJVQO3JgulHosUQRXrOjYmaS3228TX8lnoHDsf2 2NTZzNy3CTIKBYQ7d8Kadm40GSkAkTqht1SRa/v++0SDgAjrGSQBFANNcIvPszv2 5Xnkr3AqcijirX3lmiKSvLpHvzyimen+3d1RyNvBTMDg9o0+GMchWQMtB8SBF4jr /5XL4eyHWtRlR5odCt8cODt5ZFSl+g== =3VMg -----END PGP SIGNATURE----- --rjyk2u3xdjjkrfxa--