drm/i915: Simplify the link training functions
authorImre Deak <imre.deak@intel.com>
Wed, 7 Oct 2020 17:09:13 +0000 (20:09 +0300)
committerImre Deak <imre.deak@intel.com>
Mon, 12 Oct 2020 12:31:36 +0000 (15:31 +0300)
commit0a5991f5d022235ba085001e2a3926f83a0aed1b
tree82aa39002aebc322814e60c582235ed214115ecb
parent6777a855d66d27c4082d6316cc0f2a26a004ed62
drm/i915: Simplify the link training functions

Split the prepare, link training, fallback-handling steps into their own
functions for clarity and as a preparation for the upcoming LTTPR
changes.

While at it also:
- Unexport and inline intel_dp_set_idle_link_train(), which is used at a
  single place.
- Add some documentation to functions that are exported or that can use
  a better description about which part of the LT sequence they
  implement.

v2: (Ville)
- Unexport/inline intel_dp_set_idle_link_train()
- Make the documentation of
  intel_dp_prepare_link_train()/intel_dp_stop_link_train() more accurate
  wrt. HW specific details.

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-3-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_dp.h
drivers/gpu/drm/i915/display/intel_dp_link_training.c