]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel: panel-simple: Add dev_err_probe if backlight could not be found
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Tue, 21 Jun 2022 07:21:18 +0000 (09:21 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Fri, 24 Jun 2022 19:34:44 +0000 (21:34 +0200)
commitcf90c9a335328264282be7a9afb953cfd01f2e71
treeaa370aa331fce0e481fda967a88c4d690f7931ce
parent81e65db563bda8867d714a09e6dafbc56afb395a
drm/panel: panel-simple: Add dev_err_probe if backlight could not be found

If the backlight node is not enabled, this (silently) returns with
-EPROBE_DEFER. /sys/kernel/debug/devices_deferred also shows nothing
helpful:
$ cat /sys/kernel/debug/devices_deferred
display

With this patch, there is a helpful hint:
$ cat /sys/kernel/debug/devices_deferred
display panel-simple: Could not find backlight

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220621072118.513346-1-alexander.stein@ew.tq-group.com
drivers/gpu/drm/panel/panel-simple.c