Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d973f853 authored by Jerry (Fangzhi) Zuo's avatar Jerry (Fangzhi) Zuo Committed by Alex Deucher
Browse files

drm/amd/display: Update MST edid property every time



Extended fix to: "Don't read EDID in atomic_check"

Fix display property not observed in GUI display after hot plug.

Call drm_mode_connector_update_edid_property every time in
.get_modes hook, due to the fact that edid property is getting
removed from usermode ioctl DRM_IOCTL_MODE_GETCONNECTOR each time
in hot unplug.

Signed-off-by: default avatarJerry (Fangzhi) Zuo <Jerry.Zuo@amd.com>
Reviewed-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent c7b8de00
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -253,10 +253,10 @@ static int dm_dp_mst_get_modes(struct drm_connector *connector)
		if (aconnector->dc_sink)
			amdgpu_dm_add_sink_to_freesync_module(
					connector, edid);
	}

	drm_mode_connector_update_edid_property(
						&aconnector->base, edid);
	}
					&aconnector->base, aconnector->edid);

	ret = drm_add_edid_modes(connector, aconnector->edid);