Commit 15b9f629 authored by Aurabindo Pillai's avatar Aurabindo Pillai Committed by Alex Deucher
Browse files

drm/amd/display: Read DP tunneling support only for DPIA endpoints



Unconditionally reading DP tunneling support results in extraneous
errors messages on certain devices. Fix this by guarding the DPCD read
for DP tunneling support for USB4 DPIA endpoints.

Reviewed-by: default avatarMeenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Signed-off-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 9517aa5b
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1633,9 +1633,11 @@ static bool retrieve_link_cap(struct dc_link *link)
	}

	/* Read DP tunneling information. */
	if (link->ep_type == DISPLAY_ENDPOINT_USB4_DPIA) {
		status = dpcd_get_tunneling_device_data(link);
		if (status != DC_OK)
			dm_error("%s: Read tunneling device data failed.\n", __func__);
	}

	dpcd_set_source_specific_data(link);
	/* Sink may need to configure internals based on vendor, so allow some