Sanitize link capability change handling via long HPD pulse /
RX_CAP_CHANGED HPD IRQ events and the connector detect paths by making
all of them consistently reset the link training/recovery and MST link
probe state after a link capability change.

This also prepares for the refactoring of the DP link capability logic
in patch [1], simplifying the handling of link capability changes in
that patchset based on the above.

[1] https://lore.kernel.org/all/[email protected]

Cc: Ville Syrjälä <[email protected]>
Cc: Jani Nikula <[email protected]>

Imre Deak (5):
  drm/i915/dp: Add helpers to reset link params
  drm/i915/dp: Reset link params after a DPRX capability change
  drm/i915/dp: Add helper to set common link params
  drm/i915/dp: Cache max common lane count
  drm/i915/dp: Detect changes in common link parameters

 drivers/gpu/drm/i915/display/g4x_dp.c         |   2 +-
 drivers/gpu/drm/i915/display/intel_ddi.c      |   2 +-
 .../drm/i915/display/intel_display_types.h    |   1 +
 drivers/gpu/drm/i915/display/intel_dp.c       | 103 +++++++++++++++---
 drivers/gpu/drm/i915/display/intel_dp.h       |   3 +-
 .../drm/i915/display/intel_dp_link_training.c |   4 +-
 6 files changed, 94 insertions(+), 21 deletions(-)

-- 
2.49.1

Reply via email to