drm/i915/dp: Extract drm_dp_read_sink_count_cap()
authorLyude Paul <lyude@redhat.com>
Wed, 26 Aug 2020 18:24:51 +0000 (14:24 -0400)
committerLyude Paul <lyude@redhat.com>
Mon, 31 Aug 2020 23:10:08 +0000 (19:10 -0400)
commit693c3ec5976eb4b66cbd4f3f1c701a6f0ae1c9b9
tree2accf554bc539eace05e11121fcd1c580c1a43c3
parent409d38139b42f2c3d3e6012a060c498fbb5067fc
drm/i915/dp: Extract drm_dp_read_sink_count_cap()

Since other drivers are also going to need to be aware of the sink count
in order to do proper dongle detection, we might as well steal i915's
DP_SINK_COUNT helpers and move them into DRM helpers so that other
dirvers can use them as well.

Note that this also starts using intel_dp_has_sink_count() in
intel_dp_detect_dpcd(), which is a functional change.

v5:
* Change name from drm_dp_has_sink_count() to
  drm_dp_read_sink_count_cap()

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