projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10f7b40
)
drm/panel-simple: Support DP AUX backlight
author
Rajeev Nandan
<rajeevny@codeaurora.org>
Sat, 26 Jun 2021 16:51:04 +0000
(22:21 +0530)
committer
Douglas Anderson
<dianders@chromium.org>
Fri, 9 Jul 2021 13:47:55 +0000
(06:47 -0700)
If there is no backlight specified in the device tree and the panel
has access to the DP AUX channel then create a DP AUX backlight if
supported by the panel.
Signed-off-by: Rajeev Nandan <rajeevny@codeaurora.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/1624726268-14869-3-git-send-email-rajeevny@codeaurora.org
drivers/gpu/drm/panel/panel-simple.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/panel/panel-simple.c
b/drivers/gpu/drm/panel/panel-simple.c
index 78f0394e3b2486ce8f3ff8f2004247916a390e80..6f233f2a4e3dd5c48bf6629d3772003a22d67318 100644
(file)
--- a/
drivers/gpu/drm/panel/panel-simple.c
+++ b/
drivers/gpu/drm/panel/panel-simple.c
@@
-800,6
+800,12
@@
static int panel_simple_probe(struct device *dev, const struct panel_desc *desc,
if (err)
goto disable_pm_runtime;
+ if (!panel->base.backlight && panel->aux) {
+ err = drm_panel_dp_aux_backlight(&panel->base, panel->aux);
+ if (err)
+ goto disable_pm_runtime;
+ }
+
drm_panel_add(&panel->base);
return 0;