drm/i915: Disable TRAINING_PATTERN_SET before stopping the TPS transmission
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 18 Jan 2021 16:21:07 +0000 (18:21 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 19 Jan 2021 17:12:07 +0000 (19:12 +0200)
commit147819f6b890a0e50877750c7158a9658eb26dc4
treec95085d827bd636e8c23ac64e268ea4be58aac78
parent0aa5c3835c8ad34034d53a71ab047e5e614e704e
drm/i915: Disable TRAINING_PATTERN_SET before stopping the TPS transmission

DP spec says:
"The Source device shall start sending the idle pattern after
 it has cleared the Training_Pattern byte in the DPCD."

Currently we do these in operations in the opposite order.
Swap them around to match the spec.

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