diff options
author | Imre Deak <imre.deak@intel.com> | 2022-04-11 16:25:39 +0300 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2022-04-14 21:01:56 +0300 |
commit | d8bb92e70a434584f5b8a882eb46930cc22fd45a (patch) | |
tree | 4974dc36bdfe58672d6739d5c1f507c2d2f6fc04 /include | |
parent | f1e4c916f97f6adc0848515d269b3899661873ce (diff) | |
download | linux-d8bb92e70a434584f5b8a882eb46930cc22fd45a.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/dp/drm_dp_helper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/dp/drm_dp_helper.h b/include/drm/dp/drm_dp_helper.h index 51e02cf75277..53d1e722f4de 100644 --- a/include/drm/dp/drm_dp_helper.h +++ b/include/drm/dp/drm_dp_helper.h @@ -2053,6 +2053,7 @@ struct drm_dp_aux { bool is_remote; }; +int drm_dp_dpcd_probe(struct drm_dp_aux *aux, unsigned int offset); ssize_t drm_dp_dpcd_read(struct drm_dp_aux *aux, unsigned int offset, void *buffer, size_t size); ssize_t drm_dp_dpcd_write(struct drm_dp_aux *aux, unsigned int offset, |