* [PATCH RESEND] drm/bridge: ti-sn65dsi83: use dev_err_probe when failing to get panel bridge
@ 2024-12-17 16:02 Luca Ceresoli
2024-12-17 16:06 ` Luca Ceresoli
2024-12-18 10:25 ` Neil Armstrong
0 siblings, 2 replies; 4+ messages in thread
From: Luca Ceresoli @ 2024-12-17 16:02 UTC (permalink / raw)
To: Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Herve Codina, Simona Vetter
Cc: Thomas Petazzoni, dri-devel, linux-kernel, Louis Chauvet,
Luca Ceresoli
When devm_drm_of_get_bridge() fails, the probe fails silently. Use
dev_err_probe() instead to log an error or report the deferral reason,
whichever is applicable.
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
---
drivers/gpu/drm/bridge/ti-sn65dsi83.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi83.c b/drivers/gpu/drm/bridge/ti-sn65dsi83.c
index 57a7ed13f9965db5a32b601a2a7ca92314c68f7d..60b9f14d769a5489acdfca6c2bb5744d02081315 100644
--- a/drivers/gpu/drm/bridge/ti-sn65dsi83.c
+++ b/drivers/gpu/drm/bridge/ti-sn65dsi83.c
@@ -606,7 +606,7 @@ static int sn65dsi83_parse_dt(struct sn65dsi83 *ctx, enum sn65dsi83_model model)
panel_bridge = devm_drm_of_get_bridge(dev, dev->of_node, 2, 0);
if (IS_ERR(panel_bridge))
- return PTR_ERR(panel_bridge);
+ return dev_err_probe(dev, PTR_ERR(panel_bridge), "Failed to get panel bridge\n");
ctx->panel_bridge = panel_bridge;
---
base-commit: 8400291e289ee6b2bf9779ff1c83a291501f017b
change-id: 20240808-ti-sn65dsi83-dev_err_probe-98daf0ddafb1
Best regards,
--
Luca Ceresoli <luca.ceresoli@bootlin.com>
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH RESEND] drm/bridge: ti-sn65dsi83: use dev_err_probe when failing to get panel bridge
2024-12-17 16:02 [PATCH RESEND] drm/bridge: ti-sn65dsi83: use dev_err_probe when failing to get panel bridge Luca Ceresoli
@ 2024-12-17 16:06 ` Luca Ceresoli
2024-12-18 10:14 ` Neil Armstrong
2024-12-18 10:25 ` Neil Armstrong
1 sibling, 1 reply; 4+ messages in thread
From: Luca Ceresoli @ 2024-12-17 16:06 UTC (permalink / raw)
To: Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Herve Codina, Simona Vetter
Cc: Thomas Petazzoni, dri-devel, linux-kernel, Louis Chauvet,
Andi Shyti
Hello,
On Tue, 17 Dec 2024 17:02:51 +0100
Luca Ceresoli <luca.ceresoli@bootlin.com> wrote:
> When devm_drm_of_get_bridge() fails, the probe fails silently. Use
> dev_err_probe() instead to log an error or report the deferral reason,
> whichever is applicable.
>
> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
This patch got a reviewed-by from Andi Shyti when I sent it the first
time [0], but b4 didn't keep it when resending. I think it is fair for
me to add it now, even though I'm not sure patchwork and b4 will catch
it:
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
[0] https://lore.kernel.org/all/ZrtuksiarZNS8L79@ashyti-mobl2.lan/
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH RESEND] drm/bridge: ti-sn65dsi83: use dev_err_probe when failing to get panel bridge
2024-12-17 16:06 ` Luca Ceresoli
@ 2024-12-18 10:14 ` Neil Armstrong
0 siblings, 0 replies; 4+ messages in thread
From: Neil Armstrong @ 2024-12-18 10:14 UTC (permalink / raw)
To: Luca Ceresoli, Andrzej Hajda, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Herve Codina, Simona Vetter
Cc: Thomas Petazzoni, dri-devel, linux-kernel, Louis Chauvet,
Andi Shyti
Hi,
On 17/12/2024 17:06, Luca Ceresoli wrote:
> Hello,
>
> On Tue, 17 Dec 2024 17:02:51 +0100
> Luca Ceresoli <luca.ceresoli@bootlin.com> wrote:
>
>> When devm_drm_of_get_bridge() fails, the probe fails silently. Use
>> dev_err_probe() instead to log an error or report the deferral reason,
>> whichever is applicable.
>>
>> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
>
> This patch got a reviewed-by from Andi Shyti when I sent it the first
> time [0], but b4 didn't keep it when resending. I think it is fair for
> me to add it now, even though I'm not sure patchwork and b4 will catch
> it:
>
> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
>
> [0] https://lore.kernel.org/all/ZrtuksiarZNS8L79@ashyti-mobl2.lan/
>
Added it manually!
Thanks
Neil
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH RESEND] drm/bridge: ti-sn65dsi83: use dev_err_probe when failing to get panel bridge
2024-12-17 16:02 [PATCH RESEND] drm/bridge: ti-sn65dsi83: use dev_err_probe when failing to get panel bridge Luca Ceresoli
2024-12-17 16:06 ` Luca Ceresoli
@ 2024-12-18 10:25 ` Neil Armstrong
1 sibling, 0 replies; 4+ messages in thread
From: Neil Armstrong @ 2024-12-18 10:25 UTC (permalink / raw)
To: Andrzej Hajda, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Herve Codina, Simona Vetter,
Luca Ceresoli
Cc: Thomas Petazzoni, dri-devel, linux-kernel, Louis Chauvet
Hi,
On Tue, 17 Dec 2024 17:02:51 +0100, Luca Ceresoli wrote:
> When devm_drm_of_get_bridge() fails, the probe fails silently. Use
> dev_err_probe() instead to log an error or report the deferral reason,
> whichever is applicable.
>
>
Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next)
[1/1] drm/bridge: ti-sn65dsi83: use dev_err_probe when failing to get panel bridge
https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/4e358b57bbb3e35bf20faed697305cd97aa1a388
--
Neil
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-12-18 10:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-17 16:02 [PATCH RESEND] drm/bridge: ti-sn65dsi83: use dev_err_probe when failing to get panel bridge Luca Ceresoli
2024-12-17 16:06 ` Luca Ceresoli
2024-12-18 10:14 ` Neil Armstrong
2024-12-18 10:25 ` Neil Armstrong
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.