Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1012711ybm; Wed, 27 May 2020 13:46:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw26NbhtWfx4Gfrt0By+tr3vxTm19vuuw+Pit+JSk5FIB5nTuT1C4mfHZS8jMvBde2+izLK X-Received: by 2002:a50:ee04:: with SMTP id g4mr25280951eds.221.1590612361051; Wed, 27 May 2020 13:46:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590612361; cv=none; d=google.com; s=arc-20160816; b=hU3lSft9gj6xGfo85uJu4GwgYR50nlatJa15cSwUtxqPMX3UEvBI2cvgG6y7Orb2Hk LPah0vj3HnC6cf1JQu1Z2oP8dhnCBjGLKCpRdIfajGT0D+nBtAgX07GZjj1BO+psaAka io4/zXkG/P34dmajWH713P7nCz/+SOIQ4TelUaY61p1bIoLgoAwWODs25eoKv9/HmBbp TdAAEvYaELTmAaVCzhNNwcZspZ4Pe6YI0U/SH1s9mgDIQNzC6vSfD0x47KvT5xHUay+c SK31/kHRY+dDKMr/+ftGVRXy9KcDayfg3WIyObF3XL0yqZGT4n1MfI0P+GyW8Tx9E5Dt Mdgg== 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; bh=cVK1m8mCMsRJDME/dgSJ/J+zB7rMERDB8eaLmDiUcPM=; b=QU5MUgfnTd506bweHxZws32Kz3rASiwzHLv/MwBZ1MoA8se54+rYG68GvUqCoQiyYX 242iLScGgQ/AZ9OUsClVBohQ6cJ1S6HE2W6TZ9gsA4oOwNZ3pkYtjZXwvQJqaHgG+PzK 8i1vyYoaBCmsbyT2fze8N8Ex/Ihihg0IZi4L4Or+Ehz8sYa/hJJYjhDFlOFaVh0YPq3Y v7aG/0h+vOIzWonrDhfABJFrkMfIDe2AWK49DfwwksQbwkjrU6xuf2gKX5Bm9DjrpPDg 5uzSd4s7QqUJgyR2OE9YiMRq5np4DXLYyUhE7bN8Vuh2ZyBHrH1ocj05BQNk7mTCBsbH smEg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id my6si2561412ejb.87.2020.05.27.13.45.34; Wed, 27 May 2020 13:46:01 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728082AbgE0Unm (ORCPT + 99 others); Wed, 27 May 2020 16:43:42 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:46260 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726482AbgE0Unm (ORCPT ); Wed, 27 May 2020 16:43:42 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: alyssa) with ESMTPSA id 299B22A3C1D Date: Wed, 27 May 2020 16:43:34 -0400 From: Alyssa Rosenzweig To: Krzysztof Kozlowski Cc: Rob Herring , Tomeu Vizoso , Steven Price , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] drm/panfrost: Reduce the amount of logs on deferred probe Message-ID: <20200527204334.GA15485@kevin> References: <20200527200544.7849-1-krzk@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline In-Reply-To: <20200527200544.7849-1-krzk@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Reviewed-by: Alyssa Rosenzweig On Wed, May 27, 2020 at 10:05:44PM +0200, Krzysztof Kozlowski wrote: > There is no point to print deferred probe (and its failures to get > resources) as an error. Also there is no need to print regulator errors > twice. >=20 > In case of multiple probe tries this would pollute the dmesg. >=20 > Signed-off-by: Krzysztof Kozlowski > Reviewed-by: Steven Price >=20 > --- >=20 > Changes since v2: > 1. Rebase > 2. Add Steven's review >=20 > Changes since v1: > 1. Remove second error message from calling panfrost_regulator_init() > --- > drivers/gpu/drm/panfrost/panfrost_device.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/drivers/gpu/drm/panfrost/panfrost_device.c b/drivers/gpu/drm= /panfrost/panfrost_device.c > index 8136babd3ba9..b172087eee6a 100644 > --- a/drivers/gpu/drm/panfrost/panfrost_device.c > +++ b/drivers/gpu/drm/panfrost/panfrost_device.c > @@ -101,7 +101,9 @@ static int panfrost_regulator_init(struct panfrost_de= vice *pfdev) > pfdev->comp->num_supplies, > pfdev->regulators); > if (ret < 0) { > - dev_err(pfdev->dev, "failed to get regulators: %d\n", ret); > + if (ret !=3D -EPROBE_DEFER) > + dev_err(pfdev->dev, "failed to get regulators: %d\n", > + ret); > return ret; > } > =20 > @@ -213,10 +215,8 @@ int panfrost_device_init(struct panfrost_device *pfd= ev) > } > =20 > err =3D panfrost_regulator_init(pfdev); > - if (err) { > - dev_err(pfdev->dev, "regulator init failed %d\n", err); > + if (err) > goto err_out0; > - } > =20 > err =3D panfrost_reset_init(pfdev); > if (err) { > --=20 > 2.17.1 >=20 --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEQ17gm7CvANAdqvY4/v5QWgr1WA0FAl7O0O8ACgkQ/v5QWgr1 WA3p3g/8DCZyn9SS5HpC/u7NXQd7gR9kT/h96A3UERjq1qb+BOg/Cll9aB/GzZ9v c6ux7qhSOwGhHXRhrcM3ar/9XPZBasjIgMPdsu0To1G00Yl78LtYoM8csLjIQB7k zGa3QHQj/m1G3/jCBNrBqiDLsBPsAI5wQEHrmDTakp6xW2qFsa8yy54+7rgbHmm0 oBefDrKUqukbBsaoiL/p1R1M3gTeTMinUy1/Ec2MMR7Vn/1ySpzGAQ7tgD04qnB4 uSgLcWGZHNSMKWiAjclsJLOgL1HpSFwXFzlWCe9bwdzoCroldKHC3vkhazzewpG9 q3MhbyDE4AhSl4v8sEieJvvAOpCQ9VtMLk/+a9COMDfQ0gYWnvzgFHcOrVJvyS8P aQ2URoHkH0KRL6VRBwiSLi9IqUqMmR66GrCIG+69OfR1dMDaFyHCGBhM8yyUWBhh AmVNnwUyaFJoUGx24o6HqlCY0M/f1PPeLh8o6wO+zfWWL8N4Sdp2D7XMSkYiNK5U ZPWdFBCfY1KUENlco7k/AB6xMy6bpq7YSQkzwpHN5i7dTBmLi2MBGV7E8sm0QUdh 0UFCt7Qf9qHqP3uhHcZ+PGovkd2/5FA9lNFzVLLd52NYdsRognfHN4MfC/5JESx6 dv1aaqHmOKVck/eiA03/nW0l1Yjz9ScvVDz1p4x0Z47B6l17HrI= =srst -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7--