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)
commitd8bb92e70a434584f5b8a882eb46930cc22fd45a
tree4974dc36bdfe58672d6739d5c1f507c2d2f6fc04
parentf1e4c916f97f6adc0848515d269b3899661873ce
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