Commit e4aa3428 authored by Thierry Reding's avatar Thierry Reding

drm/panel: simple: Update backlight state property

Some backlight drivers ignore the power property and instead only use
the state property. Fixup the panel driver to set the state property in
addition to the power property.
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent dc982832
...@@ -168,6 +168,7 @@ static int panel_simple_disable(struct drm_panel *panel) ...@@ -168,6 +168,7 @@ static int panel_simple_disable(struct drm_panel *panel)
if (p->backlight) { if (p->backlight) {
p->backlight->props.power = FB_BLANK_POWERDOWN; p->backlight->props.power = FB_BLANK_POWERDOWN;
p->backlight->props.state |= BL_CORE_FBBLANK;
backlight_update_status(p->backlight); backlight_update_status(p->backlight);
} }
...@@ -235,6 +236,7 @@ static int panel_simple_enable(struct drm_panel *panel) ...@@ -235,6 +236,7 @@ static int panel_simple_enable(struct drm_panel *panel)
msleep(p->desc->delay.enable); msleep(p->desc->delay.enable);
if (p->backlight) { if (p->backlight) {
p->backlight->props.state &= ~BL_CORE_FBBLANK;
p->backlight->props.power = FB_BLANK_UNBLANK; p->backlight->props.power = FB_BLANK_UNBLANK;
backlight_update_status(p->backlight); backlight_update_status(p->backlight);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment