]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit35b7a90e31bc7d81b73cf1a655772d3b9c27e826
treea110846fcca4792a6a0786d190a544097b8fdf8c
parent43832e16802c9e2bb30e76e6786e553b1da3a355
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