drm/amd/display: restore edid reading from a given i2c adapter
authorMelissa Wen <mwen@igalia.com>
Sat, 15 Feb 2025 21:15:47 +0000 (18:15 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2025 16:44:01 +0000 (11:44 -0500)
commit81262b1656feb3813e3d917ab78824df6831e69e
treed971e4a3f56f84ac53dd03d2aa02059b0a0af744
parent9d8af72fe73f00b74ac1ace6201ab7030d765d54
drm/amd/display: restore edid reading from a given i2c adapter

When switching to drm_edid, we slightly changed how to get edid by
removing the possibility of getting them from dc_link when in aux
transaction mode. As MST doesn't initialize the connector with
`drm_connector_init_with_ddc()`, restore the original behavior to avoid
functional changes.

v2:
- Fix build warning of unchecked dereference (kernel test bot)

CC: Alex Hung <alex.hung@amd.com>
CC: Mario Limonciello <mario.limonciello@amd.com>
CC: Roman Li <Roman.Li@amd.com>
CC: Aurabindo Pillai <Aurabindo.Pillai@amd.com>
Fixes: 48edb2a4256e ("drm/amd/display: switch amdgpu_dm_connector to use struct drm_edid")
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c