Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1298086pxb; Sat, 17 Apr 2021 13:01:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyF4yGCi90ClXKnvT6w3XG8v+PD/Kq9nq4gvGpytMEmsTw1QEYvz1yd4c653Klu3RdIQzQe X-Received: by 2002:a05:6402:8ce:: with SMTP id d14mr2442245edz.343.1618689667008; Sat, 17 Apr 2021 13:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618689667; cv=none; d=google.com; s=arc-20160816; b=bH59cw3ngei7qQAJMWWEbqQuEOlprp50QOPiZuN1fi05gJ0+xIR979lC+TmWfC42du Jr324045U0oufiui+DQqj7SSeqHrxjG5F6Ai4MHx3xjW/lGFDUl4sdHxLnwBl+BADrex IgCFa5iyMYcvG6Ys0AmM5pFxX/cBlprgkNheWmV8qe+oti4vkJKK8bPxz4UGExgQAV0L O8JsH4NwVlUGRNLVwBY7i8T0A4uXqd0vnFWBZu+0f07zXRYsDLKCMy7k9wkevSFQVueV TIGSOATXePr+kN1o0ApFQe/u5HY2qg9P84XwJ3/8pP3OgIgNDTRNhkwH65D3zR+ujtR9 4Xcw== 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=1m4QnePNcGES3cweGbZkWX7aSuLcmBO0vILBDCvHONk=; b=05kgBz2n54dYKU2kjs+TmaLgiNV/tcrR5+frSgQCJPfxmsWlqXW+5lKNJkO/qamYxE a6pZmc2DHJjbo33j/GcfIV9vsLk0hGo3p04OtTHitUtOfOPQecAERgp77KCkz6RHexUQ VmXFjfGoPbWqOMwoMifSchCvPIE/5JsUDAlg7K8GAeGJv1hu4DkH4t99qsIlcBpdrgaD vZL9qfMIS7W/qDL4WBUr4TlN3/IgbMURvpWifMs4VKjoWglxaloDojtgCUb66Vjyk8rS LsO6vsH66Bp3ECRqicolm+eFLtSlTUArpZluuVoM+cmaVj6cVKZjrvFREHLBuXf8ARFK 7ZSQ== 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 j10si7617922edw.468.2021.04.17.13.00.44; Sat, 17 Apr 2021 13:01:06 -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 S237071AbhDQT7t (ORCPT + 99 others); Sat, 17 Apr 2021 15:59:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236491AbhDQT7s (ORCPT ); Sat, 17 Apr 2021 15:59:48 -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 2D6FEC061574 for ; Sat, 17 Apr 2021 12:59:22 -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 1lXr66-0007P9-O0; Sat, 17 Apr 2021 21:59:18 +0200 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lXr66-0003XK-CT; Sat, 17 Apr 2021 21:59:18 +0200 Date: Sat, 17 Apr 2021 21:59:18 +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 v9 8/8] pwm: pca9685: Add error messages for failed regmap calls Message-ID: <20210417195918.i4ugym3busamymtl@pengutronix.de> References: <20210415121455.39536-1-clemens.gruber@pqgruber.com> <20210415121455.39536-8-clemens.gruber@pqgruber.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vpfteztswegvpk7m" Content-Disposition: inline In-Reply-To: <20210415121455.39536-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 --vpfteztswegvpk7m Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 15, 2021 at 02:14:55PM +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/ | --vpfteztswegvpk7m Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmB7PhIACgkQwfwUeK3K 7Amz8wf9H+ets8pXp0ZaXVDhobF/LbaLnPgzRIIN5R6LKyP0dZZ8ZHo/XjoPzB73 bsyxK0fhwbakNoMxrw86mcS/+vOV0R93BLb4p4qIVo9myEM2xQwWFfvcKvqyyED5 AI6nLpDYk6knguJZbIpMUEQeE48DXAra6BENdD4idTcMgF5hSb1oCW3SddZsAV3m 78M8YPgPbfazURIQ3Hvt9H6rCYpp+HrPsDXAWVrX2AI9fUSW0TaAEYZcrbaKK0KF 7ju801s60JgND0+3fFCjVIHBAH2P6jozUI70aAn4FpbEgGinYhnvRT6tUFyig9Vz d4yIKAdWn3iec+HjtHG90IiMDzInrQ== =w+wf -----END PGP SIGNATURE----- --vpfteztswegvpk7m--