]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Skip writeback connector when we get amdgpu_dm_connector
authorHarry Wentland <harry.wentland@amd.com>
Thu, 27 Oct 2022 18:17:48 +0000 (14:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Sep 2023 19:44:36 +0000 (15:44 -0400)
commit30a24318cc8f4947c6567c78997c8deb546e7a0b
tree05c4483f4d505d79c10d87f233251327ccd88b2c
parent1934907234c86514475b00c8169e7b56ef29ed52
drm/amd/display: Skip writeback connector when we get amdgpu_dm_connector

[WHY]
Writeback connectors are based on a different object:
drm_writeback_connector, and are therefore different from
amdgpu_dm_connector. We need to be careful to ensure code
designed for amdgpu_dm_connector doesn't inadvertently try
to operate on a drm_writeback_connector.

[HOW]
Skip them when connector type is DRM_MODE_CONNECTOR_WRITEBACK.

Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c