* [PATCH] regulator: qcom-labibb: use the platform device in dev_err_probe()
@ 2026-11-28 16:40 Cong Nguyen
2026-11-30 8:25 ` Konrad Dybcio
2026-11-30 12:50 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Cong Nguyen @ 2026-11-28 16:40 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown; +Cc: linux-arm-msm, linux-kernel
When the short-circuit interrupt cannot be found, the probe loop calls
dev_err_probe() with vreg->dev. vreg->dev is only set a few lines further
down, so at this point it is still NULL.
If of_irq_get_byname() returned -EPROBE_DEFER, dev_err_probe() passes the
device to device_set_deferred_probe_reason(), which calls
dev_driver_string() on it.
Pass the platform device, which probe already has in dev.
Fixes: 390af53e0411 ("regulator: qcom-labibb: Implement short-circuit and over-current IRQs")
Signed-off-by: Cong Nguyen <congnt264@gmail.com>
---
drivers/regulator/qcom-labibb-regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/qcom-labibb-regulator.c b/drivers/regulator/qcom-labibb-regulator.c
index 8641e69b55c3..83fb6f70e3ed 100644
--- a/drivers/regulator/qcom-labibb-regulator.c
+++ b/drivers/regulator/qcom-labibb-regulator.c
@@ -821,7 +821,7 @@ static int qcom_labibb_regulator_probe(struct platform_device *pdev)
irq = -EINVAL;
of_node_put(reg_node);
- return dev_err_probe(vreg->dev, irq,
+ return dev_err_probe(dev, irq,
"Short-circuit irq not found.\n");
}
vreg->sc_irq = irq;
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] regulator: qcom-labibb: use the platform device in dev_err_probe()
2026-11-28 16:40 [PATCH] regulator: qcom-labibb: use the platform device in dev_err_probe() Cong Nguyen
@ 2026-11-30 8:25 ` Konrad Dybcio
2026-11-30 12:50 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Konrad Dybcio @ 2026-11-30 8:25 UTC (permalink / raw)
To: Cong Nguyen, Liam Girdwood, Mark Brown; +Cc: linux-arm-msm, linux-kernel
On 11/28/26 5:40 PM, Cong Nguyen wrote:
> When the short-circuit interrupt cannot be found, the probe loop calls
> dev_err_probe() with vreg->dev. vreg->dev is only set a few lines further
> down, so at this point it is still NULL.
>
> If of_irq_get_byname() returned -EPROBE_DEFER, dev_err_probe() passes the
> device to device_set_deferred_probe_reason(), which calls
> dev_driver_string() on it.
>
> Pass the platform device, which probe already has in dev.
>
> Fixes: 390af53e0411 ("regulator: qcom-labibb: Implement short-circuit and over-current IRQs")
> Signed-off-by: Cong Nguyen <congnt264@gmail.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] regulator: qcom-labibb: use the platform device in dev_err_probe()
2026-11-28 16:40 [PATCH] regulator: qcom-labibb: use the platform device in dev_err_probe() Cong Nguyen
2026-11-30 8:25 ` Konrad Dybcio
@ 2026-11-30 12:50 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2026-11-30 12:50 UTC (permalink / raw)
To: Liam Girdwood, Cong Nguyen; +Cc: linux-arm-msm, linux-kernel
On Sat, 28 Nov 2026 23:40:39 +0700, Cong Nguyen wrote:
> regulator: qcom-labibb: use the platform device in dev_err_probe()
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-7.5
Thanks!
[1/1] regulator: qcom-labibb: use the platform device in dev_err_probe()
https://git.kernel.org/broonie/regulator/c/21cff6dd85cb
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] 3+ messages in thread
end of thread, other threads:[~2026-11-30 14:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-28 16:40 [PATCH] regulator: qcom-labibb: use the platform device in dev_err_probe() Cong Nguyen
2026-11-30 8:25 ` Konrad Dybcio
2026-11-30 12:50 ` 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®