drm/cec: add drm_dp_cec_attach() as the non-edid version of set edid
authorJani Nikula <jani.nikula@intel.com>
Fri, 25 Aug 2023 13:01:20 +0000 (16:01 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 1 Sep 2023 08:47:53 +0000 (11:47 +0300)
commit113cdddcded6d597b64d824a59d0186db150113a
tree006fe077a47427a0e9d6d5d1fd8b7a3a2f65f1c7
parent82b599ece3b8c25fa6d4823086bfa5800a816bf4
drm/cec: add drm_dp_cec_attach() as the non-edid version of set edid

Connectors have source physical address available in display
info. There's no need to parse the EDID again for this. Add
drm_dp_cec_attach() to do this.

Seems like the set_edid/unset_edid naming is a bit specific now that
there's no need to pass the EDID at all, so aim for attach/detach going
forward.

v2: Fix the embarrashing build failures

Cc: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: linux-media@vger.kernel.org
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230825130120.1250089-1-jani.nikula@intel.com
drivers/gpu/drm/display/drm_dp_cec.c
include/drm/display/drm_dp_helper.h