]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/i915/dp: Extract drm_dp_read_dpcd_caps()
authorLyude Paul <lyude@redhat.com>
Wed, 26 Aug 2020 18:24:55 +0000 (14:24 -0400)
committerLyude Paul <lyude@redhat.com>
Mon, 31 Aug 2020 23:10:09 +0000 (19:10 -0400)
commitb9936121d95b0127d34fa6c25678994582d1b17c
treeaec3dbc55b06c8c7bd0b504ebe672890ca69eb69
parentf28e32d3906eac2e1cb3291b448f0d528ec93996
drm/i915/dp: Extract drm_dp_read_dpcd_caps()

Since DP 1.3, it's been possible for DP receivers to specify an
additional set of DPCD capabilities, which can take precedence over the
capabilities reported at DP_DPCD_REV.

Basically any device supporting DP is going to need to read these in an
identical manner, in particular nouveau, so let's go ahead and just move
this code out of i915 into a shared DRM DP helper that we can use in
other drivers.

v2:
* Remove redundant dpcd[DP_DPCD_REV] == 0 check
* Fix drm_dp_dpcd_read() ret checks

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Sean Paul <sean@poorly.run>
Link: https://patchwork.freedesktop.org/patch/msgid/20200826182456.322681-20-lyude@redhat.com
drivers/gpu/drm/drm_dp_helper.c
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_dp.h
drivers/gpu/drm/i915/display/intel_lspcon.c
include/drm/drm_dp_helper.h