Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp996242ybh; Wed, 11 Mar 2020 15:15:41 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuSG8I0aet5A15qKUB3B6UrorzeYfuyC+8AIfIMrlTwvp4kSUDgAArNDJQLTXwCLjuhwQyf X-Received: by 2002:a05:6808:8e5:: with SMTP id d5mr606084oic.88.1583964941420; Wed, 11 Mar 2020 15:15:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583964941; cv=none; d=google.com; s=arc-20160816; b=qwpToj36d/SDMvzt4y2jV6wOgSh878U3QfsxX6AmYM8tebzmPj+3czmCBoWcq0S5Ji kBhNI8Ss80Y4uCNZWE/i6DlbfnHGhwCAJ7GqygXCeHOSqxB5wq20anA/0q5LVfdS56aj zlEwdJJTTSsZSHa892//thizAlNHEFu+oBIIN+gALX1qPQuC0hZ99cDBvD1uSzUv3FC2 PVQCHvrCKV35YBbXKNTCqy7wuKnm/29IcFQF04Z7K9W9xNhTBdWWXd7B+tk+JbamSnsF qZPQY3Snr3SxAoHcxSAv5k9lbyZMi+v2Xa1H94ZMX8tfiV4529SryGW8JfzDbvX+e8Qr K79Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=48JRN44cbQNOoDkJM8iUn34B2PhEW07aRue5ZNuOeV4=; b=o3i1rszU8XhXpEShWc8mKpAQsXKCvFMWjo5wkKEu+LflYd2v2x9UlsCn3tkExAvvZH aha4gHCDR4LzlpHCQ/n0KYFzUp3FvwG39gyY29QT/2PXSiGqmi/OY7bQvQRRAXPw38m8 HCY2jW6uyu91ADvooZj6Bb8RNCmgC2syczBqntR6vovGpFf/rNd/TKEw03NubDjaAOYr 4dA8fogj5asgMN55LgkF9JLodZPIkiwh2y1fCn1AIWI6pAmGfMCwOUx+LbohIddM0dDC v2eJ83pi1tJge8bjKhlCIHlwPKedOXsZvrZSMGtM4YQRtIAwZLvZzwugf6QFqsViIHzs SW6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BrfmlKym; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l11si787397oom.36.2020.03.11.15.15.29; Wed, 11 Mar 2020 15:15:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BrfmlKym; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730002AbgCKWOY (ORCPT + 99 others); Wed, 11 Mar 2020 18:14:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:48846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729590AbgCKWOY (ORCPT ); Wed, 11 Mar 2020 18:14:24 -0400 Received: from jupiter.universe (dyndsl-037-138-186-138.ewe-ip-backbone.de [37.138.186.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A714620746; Wed, 11 Mar 2020 22:14:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583964863; bh=MXmplTsT5vjFdQMv3ZsaPHpahG/iVEkKHob11fQMGxI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BrfmlKymKI/pr4C2z1HossSjiFnXiIWq+Rcv4K15Ca5FMkFMncBaDVuUZDCbzBKy3 HIYK0xHq4yeR2VZ7r/F/0Xwytxvog8PuJbDm6unzQgxuEm3S4dggxMRsrOzC6hI7vb shKfg1ZMRGmpEMO4fujkbge4756lkYfXd/UG4lfc= Received: by jupiter.universe (Postfix, from userid 1000) id B98204800FC; Wed, 11 Mar 2020 23:14:21 +0100 (CET) Date: Wed, 11 Mar 2020 23:14:21 +0100 From: Sebastian Reichel To: Dmitry Osipenko Cc: "Andrew F. Davis" , Pali =?utf-8?B?Um9ow6Fy?= , David Heidelberg , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] power: supply: bq27xxx_battery: Silence deferred-probe error Message-ID: <20200311221421.ygesyzeyi3rf5cqd@jupiter.universe> References: <20200308215143.27823-1-digetx@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oavz7cyidstw6m2j" Content-Disposition: inline In-Reply-To: <20200308215143.27823-1-digetx@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --oavz7cyidstw6m2j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Mar 09, 2020 at 12:51:43AM +0300, Dmitry Osipenko wrote: > The driver fails to probe with -EPROBE_DEFER if battery's power supply > (charger driver) isn't ready yet and this results in a bit noisy error > message in KMSG during kernel's boot up. Let's silence the harmless > error message. >=20 > Signed-off-by: Dmitry Osipenko > --- Thanks, queued. -- Sebastian > drivers/power/supply/bq27xxx_battery.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/power/supply/bq27xxx_battery.c b/drivers/power/suppl= y/bq27xxx_battery.c > index 195c18c2f426..664e50103eaa 100644 > --- a/drivers/power/supply/bq27xxx_battery.c > +++ b/drivers/power/supply/bq27xxx_battery.c > @@ -1885,7 +1885,10 @@ int bq27xxx_battery_setup(struct bq27xxx_device_in= fo *di) > =20 > di->bat =3D power_supply_register_no_ws(di->dev, psy_desc, &psy_cfg); > if (IS_ERR(di->bat)) { > - dev_err(di->dev, "failed to register battery\n"); > + if (PTR_ERR(di->bat) =3D=3D -EPROBE_DEFER) > + dev_dbg(di->dev, "failed to register battery, deferring probe\n"); > + else > + dev_err(di->dev, "failed to register battery\n"); > return PTR_ERR(di->bat); > } > =20 > --=20 > 2.25.1 >=20 --oavz7cyidstw6m2j Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAl5pYroACgkQ2O7X88g7 +poFXA/9EsClWtSnD2Fei+A0iOKUk1+p52MiX08+TTK1fCWe1SQJKzFdQbyijKyl pJteKKWNlN5B9RTYWghtIMTrEqGEorFlKoXl3tk0roDffdapsv1bW4WXIz+CxMQo QB2PsB9obLo9PBJT6GJcf8UllNLeZ7V+uJU19lj/zT4uI6bnwUJ/aLx+mrLMPuXs m02HltEJph5huOX7OlvzVDUOd7ZV9EG3p8GZl99AhP4lhLNTqshaA8JjFeZT0SIA YMC5RS0VREUHBfN2P1BnGquB+1pCUx+EJk1tnbG1FNniiMHAMOPVmrRI8H9BqkD6 5fPRZouzIhQ3f8KEJr1hmiSusf5Pw2IgoD0NRmk4IEFAHNlzJijFbMsKmXbLDlGv 2GyV0zkJDaYibpjGgsBbG7LqnhMSe8JMkDa7xinL4INFaTdXrYLmGKkyjnzfP2Jr ZJhYJisQQvAhaOvUd6TJmkBr5pugSpFbmh0lE445LXkkAnwcWgDSv7Is0oGSx2p1 vFnSFr8ziEeiuoZQcXVvkrqocPJ3bAnxSKv+ZhGNIFGG1ClyYfRojuEgbrd5herM 5/ml6qtPxoLDf28g5Zt79SnfhXTtZEog1oMlbouLgJvIhm19x/bapOhrXDjPeIYQ EiWqRSRJa4oExGkRvlcD8pI8G4MwuGrAvXMONEIADVAShdcS5aU= =HqpP -----END PGP SIGNATURE----- --oavz7cyidstw6m2j--