* [PATCH] drm/tidss: Use dev_err_probe() over dev_dbg() when failing to probe the port
@ 2024-02-28 20:12 Andrew Halaney
2024-02-28 22:01 ` Javier Martinez Canillas
2024-03-05 11:16 ` Maxime Ripard
0 siblings, 2 replies; 4+ messages in thread
From: Andrew Halaney @ 2024-02-28 20:12 UTC (permalink / raw)
To: Jyri Sarha, Tomi Valkeinen, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Daniel Vetter, Enric Balletbo
Cc: dri-devel, linux-kernel, Andrew Halaney
This gets logged out to /sys/kernel/debug/devices_deferred in the
-EPROBE_DEFER case and as an error otherwise. The message here provides
useful information to the user when troubleshooting why their display is
not working in either case, so let's make it output appropriately.
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
---
There's definitely more spots in this driver that could be upgraded from
dev_dbg() to something more appropriate, but this one burned me today so
I thought I'd send a patch for it specifically before I forget.
---
drivers/gpu/drm/tidss/tidss_kms.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/tidss/tidss_kms.c b/drivers/gpu/drm/tidss/tidss_kms.c
index a0e494c806a96..f371518f86971 100644
--- a/drivers/gpu/drm/tidss/tidss_kms.c
+++ b/drivers/gpu/drm/tidss/tidss_kms.c
@@ -135,8 +135,7 @@ static int tidss_dispc_modeset_init(struct tidss_device *tidss)
dev_dbg(dev, "no panel/bridge for port %d\n", i);
continue;
} else if (ret) {
- dev_dbg(dev, "port %d probe returned %d\n", i, ret);
- return ret;
+ return dev_err_probe(dev, ret, "port %d probe failed\n", i);
}
if (panel) {
---
base-commit: 22ba90670a51a18c6b36d285fddf92b9887c0bc3
change-id: 20240228-tidss-dev-err-probe-fa61fb057029
Best regards,
--
Andrew Halaney <ahalaney@redhat.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/tidss: Use dev_err_probe() over dev_dbg() when failing to probe the port
2024-02-28 20:12 [PATCH] drm/tidss: Use dev_err_probe() over dev_dbg() when failing to probe the port Andrew Halaney
@ 2024-02-28 22:01 ` Javier Martinez Canillas
2024-02-28 23:11 ` Enric Balletbo i Serra
2024-03-05 11:16 ` Maxime Ripard
1 sibling, 1 reply; 4+ messages in thread
From: Javier Martinez Canillas @ 2024-02-28 22:01 UTC (permalink / raw)
To: Andrew Halaney, Jyri Sarha, Tomi Valkeinen, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Daniel Vetter,
Enric Balletbo
Cc: dri-devel, linux-kernel, Andrew Halaney
Andrew Halaney <ahalaney@redhat.com> writes:
Hello Andrew,
> This gets logged out to /sys/kernel/debug/devices_deferred in the
> -EPROBE_DEFER case and as an error otherwise. The message here provides
> useful information to the user when troubleshooting why their display is
> not working in either case, so let's make it output appropriately.
>
> Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
> ---
> There's definitely more spots in this driver that could be upgraded from
> dev_dbg() to something more appropriate, but this one burned me today so
> I thought I'd send a patch for it specifically before I forget.
> ---
Makes sense to me and I agree that's useful to have that information there.
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/tidss: Use dev_err_probe() over dev_dbg() when failing to probe the port
2024-02-28 22:01 ` Javier Martinez Canillas
@ 2024-02-28 23:11 ` Enric Balletbo i Serra
0 siblings, 0 replies; 4+ messages in thread
From: Enric Balletbo i Serra @ 2024-02-28 23:11 UTC (permalink / raw)
To: Javier Martinez Canillas
Cc: Andrew Halaney, Jyri Sarha, Tomi Valkeinen, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Daniel Vetter,
dri-devel, linux-kernel
Hello Andrew,
Many thanks for proposing this.
On Wed, Feb 28, 2024 at 11:02 PM Javier Martinez Canillas
<javierm@redhat.com> wrote:
>
> Andrew Halaney <ahalaney@redhat.com> writes:
>
> Hello Andrew,
>
> > This gets logged out to /sys/kernel/debug/devices_deferred in the
> > -EPROBE_DEFER case and as an error otherwise. The message here provides
> > useful information to the user when troubleshooting why their display is
> > not working in either case, so let's make it output appropriately.
> >
> > Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
> > ---
> > There's definitely more spots in this driver that could be upgraded from
> > dev_dbg() to something more appropriate, but this one burned me today so
> > I thought I'd send a patch for it specifically before I forget.
> > ---
>
> Makes sense to me and I agree that's useful to have that information there.
>
> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
>
Logging in /sys/kernel/debug/devices_deferred was useful for me, so
Tested-by: Enric Balletbo i Serra <eballetbo@kernel.org>
Cheers,
Enric
> --
> Best regards,
>
> Javier Martinez Canillas
> Core Platforms
> Red Hat
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] drm/tidss: Use dev_err_probe() over dev_dbg() when failing to probe the port
2024-02-28 20:12 [PATCH] drm/tidss: Use dev_err_probe() over dev_dbg() when failing to probe the port Andrew Halaney
2024-02-28 22:01 ` Javier Martinez Canillas
@ 2024-03-05 11:16 ` Maxime Ripard
1 sibling, 0 replies; 4+ messages in thread
From: Maxime Ripard @ 2024-03-05 11:16 UTC (permalink / raw)
To: Jyri Sarha, Tomi Valkeinen, Maarten Lankhorst, Thomas Zimmermann,
David Airlie, Daniel Vetter, Enric Balletbo, Andrew Halaney
Cc: dri-devel, linux-kernel
On Wed, 28 Feb 2024 14:12:06 -0600, Andrew Halaney wrote:
> This gets logged out to /sys/kernel/debug/devices_deferred in the
> -EPROBE_DEFER case and as an error otherwise. The message here provides
> useful information to the user when troubleshooting why their display is
> not working in either case, so let's make it output appropriately.
>
>
Applied to drm/drm-misc (drm-misc-next).
Thanks!
Maxime
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-03-05 11:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-28 20:12 [PATCH] drm/tidss: Use dev_err_probe() over dev_dbg() when failing to probe the port Andrew Halaney
2024-02-28 22:01 ` Javier Martinez Canillas
2024-02-28 23:11 ` Enric Balletbo i Serra
2024-03-05 11:16 ` Maxime Ripard
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®