From: "Clément Péron" <peron.clem@gmail•com>
To: Rob Herring <robh@kernel•org>,
Tomeu Vizoso <tomeu.vizoso@collabora•com>,
Steven Price <steven.price@arm•com>,
Alyssa Rosenzweig <alyssa.rosenzweig@collabora•com>
Cc: "Clément Péron" <peron.clem@gmail•com>,
linux-arm-kernel@lists•infradead.org,
dri-devel@lists•freedesktop.org
Subject: [PATCH] drm/panfrost: no need to display probe deferred error
Date: Thu, 5 Dec 2019 23:11:02 +0100 [thread overview]
Message-ID: <20191205221102.28248-1-peron.clem@gmail.com> (raw)
Panfrost driver is shouting an error if the regulator init
return an -EPROBE_DEFFER. This is a not a real error and
it doesn't require to be display.
Check if the error is not an EPROBE_DEFFER before displaying it.
Signed-off-by: Clément Péron <peron.clem@gmail•com>
---
drivers/gpu/drm/panfrost/panfrost_device.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/panfrost/panfrost_device.c b/drivers/gpu/drm/panfrost/panfrost_device.c
index 238fb6d54df4..00cef062c35d 100644
--- a/drivers/gpu/drm/panfrost/panfrost_device.c
+++ b/drivers/gpu/drm/panfrost/panfrost_device.c
@@ -92,7 +92,8 @@ static int panfrost_regulator_init(struct panfrost_device *pfdev)
pfdev->regulator = devm_regulator_get(pfdev->dev, "mali");
if (IS_ERR(pfdev->regulator)) {
ret = PTR_ERR(pfdev->regulator);
- dev_err(pfdev->dev, "failed to get regulator: %d\n", ret);
+ if (ret != -EPROBE_DEFER)
+ dev_err(pfdev->dev, "failed to get regulator: %d\n", ret);
return ret;
}
@@ -130,7 +131,8 @@ int panfrost_device_init(struct panfrost_device *pfdev)
err = panfrost_regulator_init(pfdev);
if (err) {
- dev_err(pfdev->dev, "regulator init failed %d\n", err);
+ if (err != -EPROBE_DEFER)
+ dev_err(pfdev->dev, "regulator init failed %d\n", err);
goto err_out0;
}
--
2.20.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2019-12-05 22:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-05 22:11 Clément Péron [this message]
2019-12-06 10:02 ` [PATCH] drm/panfrost: no need to display probe deferred error Steven Price
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191205221102.28248-1-peron.clem@gmail.com \
--to=peron.clem@gmail$(echo .)com \
--cc=alyssa.rosenzweig@collabora$(echo .)com \
--cc=dri-devel@lists$(echo .)freedesktop.org \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=robh@kernel$(echo .)org \
--cc=steven.price@arm$(echo .)com \
--cc=tomeu.vizoso@collabora$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox