OSDN Git Service

drm/i915: fix port checks for MST support on gen >= 11
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 11 Oct 2019 01:09:03 +0000 (18:09 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Sat, 19 Oct 2019 00:28:12 +0000 (17:28 -0700)
commit10d987fd1b7baceaafa78d805e71427ab735b4e4
tree3420ba16c6456d1e858dde59961ad10e2a624f27
parent327f8d8c336d2f7a037e26cdbd7f372d993a138f
drm/i915: fix port checks for MST support on gen >= 11

Both Ice Lake and Elkhart Lake (gen 11) support MST on all external
connections except DDI A. Tiger Lake (gen 12) supports on all external
connections.

Move the check to happen inside intel_dp_mst_encoder_init() and add
specific platform checks.

v2: Replace != with == checks for ports on gen < 11 (Ville)

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191015164029.18431-3-lucas.demarchi@intel.com
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_dp_mst.c