drm/i915: Fix the i915_dsc_fec_support debugfs file for DP MST connectors
authorImre Deak <imre.deak@intel.com>
Tue, 9 Jun 2020 18:41:40 +0000 (21:41 +0300)
committerImre Deak <imre.deak@intel.com>
Thu, 11 Jun 2020 10:36:38 +0000 (13:36 +0300)
commitf99fb309568dd561ad9c42b94a762247ac80325f
tree1af926b96ba5dbad974ec9b416bfc8c460832444
parentc980216dd224c52b5c70172753c209b653d84958
drm/i915: Fix the i915_dsc_fec_support debugfs file for DP MST connectors

DSC is not supported on DP MST streams so just don't add this entry for
MST connectors.

This also fixes an OOPS, caused by the encoder->digport cast, which is
not valid for MST encoders.

v2:
- Check encoder, which is unset for an MST connector, before it gets
  enabled.
v3:
- Just don't add this debugfs file for MST connectors. (Ville)

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200609184140.4937-1-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_display_debugfs.c