]> git.baikalelectronics.ru Git - kernel.git/commit
drm/dp: Factor out a function to probe a DPCD address
authorImre Deak <imre.deak@intel.com>
Mon, 11 Apr 2022 13:25:39 +0000 (16:25 +0300)
committerImre Deak <imre.deak@intel.com>
Thu, 14 Apr 2022 18:01:56 +0000 (21:01 +0300)
commit1c4b6cb9e7470e09f96e3b2eb440b402baa275bf
tree4974dc36bdfe58672d6739d5c1f507c2d2f6fc04
parent0a0798bc50095d515267c145273619faf448cc1b
drm/dp: Factor out a function to probe a DPCD address

Factor out from drm_dp_dpcd_read() a function to probe a DPCD address
with a 1-byte read access. This will be needed by the next patch doing a
read from an LTTPR address, which must happen without the preceding
wake-up read in drm_dp_dpcd_read().

While at it add tracing for the 1 byte read even if the read was
successful.

v2: Add a probe function instead of exporting drm_dp_dpcd_access(). (Jani)
v3: Add tracing for the 1-byte read even if the read was successful. (Khaled)

Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Khaled Almahallawy <khaled.almahallawy@intel.com>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220411132539.984647-1-imre.deak@intel.com
drivers/gpu/drm/dp/drm_dp.c
include/drm/dp/drm_dp_helper.h