drm/i915/mst: read link status only when requested by sink in ESI
authorJani Nikula <jani.nikula@intel.com>
Wed, 12 Jan 2022 11:03:17 +0000 (13:03 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 21 Jan 2022 10:55:49 +0000 (12:55 +0200)
commit1d50942dc9304db488d1b3978274b851e890a33b
treea110846fcca4792a6a0786d190a544097b8fdf8c
parent1358139bdefdb07bb402efb3164c1c51db99e8a5
drm/i915/mst: read link status only when requested by sink in ESI

The link service irq vector in DPCD 0x2005 contains the link status
changed bit to indicate the status should be checked. Only read and
check the link status when requested by the sink.

This also reduces the confusion around the buffer size for the combined
ESI and link status. Alas, we still need to take into account that all
link status helpers expect a buffer of DP_LINK_STATUS_SIZE (6) while the
link status in ESI only has 4 bytes.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220112110319.1172110-5-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_dp.c