* [PATCH] regulator: userspace-consumer: quiet device deferral
@ 2024-06-23 14:09 Robert Marko
2024-06-25 11:34 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Robert Marko @ 2024-06-23 14:09 UTC (permalink / raw)
To: lgirdwood, broonie, linux-kernel; +Cc: Robert Marko
Trying to use userspace-consumer when the required supplies have not yet
been probed will throw an error message on deferral:
reg-userspace-consumer output-led-power: Failed to get supplies: -517
So, lets simply use dev_err_probe() instead of dev_err() to not print
errors in case when driver probe is being deferred.
Signed-off-by: Robert Marko <robimarko@gmail.com>
---
drivers/regulator/userspace-consumer.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/regulator/userspace-consumer.c b/drivers/regulator/userspace-consumer.c
index 86a626a4f610..6153d0295b6d 100644
--- a/drivers/regulator/userspace-consumer.c
+++ b/drivers/regulator/userspace-consumer.c
@@ -158,10 +158,8 @@ static int regulator_userspace_consumer_probe(struct platform_device *pdev)
ret = devm_regulator_bulk_get_exclusive(&pdev->dev, drvdata->num_supplies,
drvdata->supplies);
- if (ret) {
- dev_err(&pdev->dev, "Failed to get supplies: %d\n", ret);
- return ret;
- }
+ if (ret)
+ return dev_err_probe(&pdev->dev, ret, "Failed to get supplies\n");
platform_set_drvdata(pdev, drvdata);
--
2.45.2
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] regulator: userspace-consumer: quiet device deferral
2024-06-23 14:09 [PATCH] regulator: userspace-consumer: quiet device deferral Robert Marko
@ 2024-06-25 11:34 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2024-06-25 11:34 UTC (permalink / raw)
To: lgirdwood, linux-kernel, Robert Marko
On Sun, 23 Jun 2024 16:09:35 +0200, Robert Marko wrote:
> Trying to use userspace-consumer when the required supplies have not yet
> been probed will throw an error message on deferral:
> reg-userspace-consumer output-led-power: Failed to get supplies: -517
>
> So, lets simply use dev_err_probe() instead of dev_err() to not print
> errors in case when driver probe is being deferred.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
Thanks!
[1/1] regulator: userspace-consumer: quiet device deferral
commit: 61a98ffc2081ac1e9070150932d9eb91d3935cf8
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-25 11:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-23 14:09 [PATCH] regulator: userspace-consumer: quiet device deferral Robert Marko
2024-06-25 11:34 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®