summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_lvds.c
diff options
context:
space:
mode:
authorVille Syrjälä2014-11-07 10:16:02 +0100
committerDaniel Vetter2014-11-14 10:29:20 +0100
commit6517d2734d22b09d3c9dc44fe6879f013a716d19 (patch)
treedf411938303a20ab2710bb939526252a74572900 /drivers/gpu/drm/i915/intel_lvds.c
parentdrm/i915: Don't deref NULL crtc in intel_get_pipe_from_connector() (diff)
downloadkernel-qcow2-linux-6517d2734d22b09d3c9dc44fe6879f013a716d19.tar.gz
kernel-qcow2-linux-6517d2734d22b09d3c9dc44fe6879f013a716d19.tar.xz
kernel-qcow2-linux-6517d2734d22b09d3c9dc44fe6879f013a716d19.zip
drm/i915: Pass the current pipe from eDP init to backlight setup
On VLV/CHV both pipes A and B have their own backlight control registers. In order to correctly read out the current hardware state at init we need to know which pipe is driving the eDP port. Pass that information down from the eDP init code into the backlight code. To determine the correct pipe we first look at which pipe is currently configured in the port control register, if that look invalid we look at which pipe's PPS is currently controlling the port, and if that too looks invalid we just assume pipe A. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lvds.c')
-rw-r--r--drivers/gpu/drm/i915/intel_lvds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c
index 2b50c98dd6b0..c03d457a5150 100644
--- a/drivers/gpu/drm/i915/intel_lvds.c
+++ b/drivers/gpu/drm/i915/intel_lvds.c
@@ -1116,7 +1116,7 @@ out:
drm_connector_register(connector);
intel_panel_init(&intel_connector->panel, fixed_mode, downclock_mode);
- intel_panel_setup_backlight(connector);
+ intel_panel_setup_backlight(connector, INVALID_PIPE);
return;