drm/amdgpu: update drm_display_info correctly when the edid is read
authorClaudio Suarez <cssk@net-c.es>
Sun, 17 Oct 2021 11:34:58 +0000 (13:34 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Dec 2021 18:12:58 +0000 (13:12 -0500)
commit20543be93ca45968f344261c1a997177e51bd7e1
tree3925d08a299f0304e420ece641c83ce687494c26
parentd374d3b493215d637b9e7be12a93f22caf4c1f97
drm/amdgpu: update drm_display_info correctly when the edid is read

drm_display_info is updated by drm_get_edid() or
drm_connector_update_edid_property(). In the amdgpu driver it is almost
always updated when the edid is read in amdgpu_connector_get_edid(),
but not always.  Change amdgpu_connector_get_edid() and
amdgpu_connector_free_edid() to keep drm_display_info updated.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Claudio Suarez <cssk@net-c.es>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c