drm/i915: Be more careful when picking the initial power sequencer pipe
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 18 Aug 2014 19:16:06 +0000 (22:16 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 4 Sep 2014 12:58:52 +0000 (14:58 +0200)
commit6491ab27caa2d802b02bfa620a53476ffae5fa3e
tree6a057f6b185a9814c2dc3019ee33392fcf41ec8d
parent773538e86081d146e0020435d614f4b96996c1f9
drm/i915: Be more careful when picking the initial power sequencer pipe

Try to make sure we find the power sequencer that the BIOS used
by first looking for one which has the panel power enabled, then
fall back to one with VDD force bit enabled, and finally look at
just the port select bits. This should make us pick the correct
power sequencer when the BIOS has already enabled the panel.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
[danvet: Shorten the vlv_intial_pps_pipe to make lines fit into 80
chars.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c