summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panel
diff options
context:
space:
mode:
authorThierry Reding2016-06-17 19:11:53 +0200
committerThierry Reding2016-07-11 14:30:35 +0200
commite4aa34289ec6a8a9f6a6f63d0e219db6ceaaf4c8 (patch)
treebedf590116ef32803a9cc323df332f37b74b3da1 /drivers/gpu/drm/panel
parentdrm/panel: simple: Remove gratuitous blank line (diff)
downloadkernel-qcow2-linux-e4aa34289ec6a8a9f6a6f63d0e219db6ceaaf4c8.tar.gz
kernel-qcow2-linux-e4aa34289ec6a8a9f6a6f63d0e219db6ceaaf4c8.tar.xz
kernel-qcow2-linux-e4aa34289ec6a8a9f6a6f63d0e219db6ceaaf4c8.zip
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: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/panel')
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 359cd37d09cb..f503d12b3930 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -168,6 +168,7 @@ static int panel_simple_disable(struct drm_panel *panel)
if (p->backlight) {
p->backlight->props.power = FB_BLANK_POWERDOWN;
+ p->backlight->props.state |= BL_CORE_FBBLANK;
backlight_update_status(p->backlight);
}
@@ -235,6 +236,7 @@ static int panel_simple_enable(struct drm_panel *panel)
msleep(p->desc->delay.enable);
if (p->backlight) {
+ p->backlight->props.state &= ~BL_CORE_FBBLANK;
p->backlight->props.power = FB_BLANK_UNBLANK;
backlight_update_status(p->backlight);
}