Skip to content

Commit 15b9f62

Browse files
Aurabindo Pillaialexdeucher
authored andcommitted
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: Meenakshikumar Somasundaram <[email protected]> Signed-off-by: Aurabindo Pillai <[email protected]> Signed-off-by: Hamza Mahfooz <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 9517aa5 commit 15b9f62

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,9 +1633,11 @@ static bool retrieve_link_cap(struct dc_link *link)
16331633
}
16341634

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

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

0 commit comments

Comments
 (0)