drm/i915: Fix broken mst get_hw_state.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 27 Aug 2015 11:13:31 +0000 (13:13 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 8 Sep 2015 13:16:50 +0000 (16:16 +0300)
commite85376cbd23299e4d40bace0cb5ab867b270fdbd
tree8d171cd1a671c290e2b7f22162048fd6ef37ac02
parent4e3d1e26c2b2c40ebff69f2825fa862bfcf082d1
drm/i915: Fix broken mst get_hw_state.

connector->encoder is initialized as NULL. Fix this by setting it in
during pre enable. MST connectors are not read out during initial hw
readout, and have no fixed encoder mappings. So it's harmless to
return false when the connector has never been assigned to an encoder.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp_mst.c