drm/i915: Factor out a helper to disable the DPCD training pattern
authorImre Deak <imre.deak@intel.com>
Wed, 7 Oct 2020 17:09:14 +0000 (20:09 +0300)
committerImre Deak <imre.deak@intel.com>
Mon, 12 Oct 2020 12:31:37 +0000 (15:31 +0300)
commitc43027a9a37541dbdc54e9dca647602175ff27a2
tree75e16df1345d6a20eb4e075e1b1b301064931105
parent0a5991f5d022235ba085001e2a3926f83a0aed1b
drm/i915: Factor out a helper to disable the DPCD training pattern

To prepare for a follow-up LTTPR change factor out a helper to disable
the training pattern in DPCD. We'll need to do this for each LTTPR
(without programming the port to output the idle pattern) when training
in LTTPR non-transparent mode.

While at it also move the disable-link-training logic from
intel_dp_set_link_train() to intel_dp_stop_link_train(), since the
latter is the only user of this.

v2:
- Move the disable-link-training logic to intel_dp_stop_link_train()
  (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-4-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp_link_training.c