Message ID | 1624726268-14869-3-git-send-email-rajeevny@codeaurora.org |
---|---|
State | Accepted |
Commit | bfd451403d70b13d22db097e4590fa80ba2160eb |
Headers | show |
Series | [v8,1/6] drm/panel: add basic DP AUX backlight support | expand |
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index df6fbd1..26555ec 100644 --- 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;