drm/i915/dp: Do not set master_trans bit in bitmak if INVALID_TRANSCODER
authorManasi Navare <manasi.d.navare@intel.com>
Thu, 23 Jan 2020 00:24:14 +0000 (16:24 -0800)
committerManasi Navare <manasi.d.navare@intel.com>
Fri, 24 Jan 2020 01:05:05 +0000 (17:05 -0800)
commit8c47eb86679cca23860c6fc64d5190fd28755da6
tree7ae0359021c1dfb9fd37f496e9b4263e742093a4
parent231946109ea4250129eb110e0b1e21e269ad59ca
drm/i915/dp: Do not set master_trans bit in bitmak if INVALID_TRANSCODER

In the port sync mode, for the master crtc, the master_transcoder is INVALID.
In that case since its value is -1, do not set the bit in the bitmask.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Fixes: d0eed1545fe7 ("drm/i915: Fix post-fastset modeset check for port sync")
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200123002415.31478-1-manasi.d.navare@intel.com
drivers/gpu/drm/i915/display/intel_display.c