]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix DP link training pattern mask
authorImre Deak <imre.deak@intel.com>
Wed, 7 Oct 2020 17:09:12 +0000 (20:09 +0300)
committerImre Deak <imre.deak@intel.com>
Mon, 12 Oct 2020 12:31:35 +0000 (15:31 +0300)
commit11c303ad1bccc8f3b95f17994459b1bf2ab3ab86
tree9e660b5e36846814b5b160aa19192c2a6972de5d
parent2adadf51a9c3cf84e3ca0631cdb1164c119fc64f
drm/i915: Fix DP link training pattern mask

An LTTPR can be trained with training pattern 4 even if the DPCD
revision is < 1.4, but drm_dp_training_pattern_mask() would change
pattern 4 to pattern 3 on those DPCD revisions.

Since intel_dp_training_pattern() makes already sure that the proper
training pattern is used, all that needs to be masked out is the
scrambling disable flag, which is or'd to the mask later based on the
training pattern.

v2:
- Use a helper instead of open-coding the masking. (Ville)

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201007170917.1764556-2-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_dp_link_training.c
drivers/gpu/drm/i915/display/intel_dp_link_training.h