drm/tidss: Use dev_err_probe() over dev_dbg() when failing to probe the port
Subsystems (3)
PATCH 1/1 drm/tidss: Use dev_err_probe() over dev_dbg() when failing to probe the port
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.
---
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(-)
drivers/gpu/drm/tidss/tidss_kms.c +1 -2
@@ -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,
Signature · 1 line
Andrew Halaney <[email protected]>
Andrew Halaney <[email protected]> writes:
Hello Andrew,
Quoted 11 lines
This gets logged out to
/sys/kernel/debug/devices_deferredin 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 <[email protected]>---
There's definitely more spots in this driver that could be upgraded fromdev_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.
Signature · 5 lines
Best regards, Javier Martinez Canillas Core Platforms Red Hat
Enric Balletbo i Serra
Tested-byHello Andrew,
Many thanks for proposing this.
Quoted 17 lines · Javier Martinez Canillas
Andrew Halaney <[email protected]> writes:
Hello Andrew,
Quoted 11 lines
This gets logged out to
/sys/kernel/debug/devices_deferredin 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 <[email protected]>---
There's definitely more spots in this driver that could be upgraded fromdev_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.
---
Quoted 4 lines
Makes sense to me and I agree that's useful to have that information there.
Reviewed-by Javier Martinez Canillas <[email protected]>
Logging in /sys/kernel/debug/devices_deferred was useful for me, so
Cheers,
Enric
Quoted 7 lines
--
Best regards,Javier Martinez Canillas
Core Platforms
Red Hat
Quoted 6 lines · Andrew Halaney
This gets logged out to
/sys/kernel/debug/devices_deferredin 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