drm/amd/display: Set DPIA link endpoint type
authorJimmy Kizito <Jimmy.Kizito@amd.com>
Tue, 5 Jan 2021 19:25:23 +0000 (14:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Oct 2021 19:51:10 +0000 (15:51 -0400)
[why & how]
We will need a way to distinguish physically connected
links and DPIA endpoints.

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Wayne Lin <Wayne.Lin@amd.com>
Acked-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Jimmy Kizito <Jimmy.Kizito@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_types.h

index 20b4819b73e411c9cae0bc1eca1917d18e73d56e..66182b8c217b2c60118c2dfc4c1ea6e7041f9966 100644 (file)
@@ -1732,6 +1732,8 @@ static bool dc_link_construct_dpia(struct dc_link *link,
                  init_params->connector_index,
                  link->connector_signal);
 
+       link->ep_type = DISPLAY_ENDPOINT_USB4_DPIA;
+
        /* TODO: Initialize link : funcs->link_init */
 
        ddc_service_init_data.ctx = link->ctx;
index 3c109c805447bd33d06fe7678d94a4b48229cb52..15c353c389d8999209053a375a67020d7244f7c9 100644 (file)
@@ -955,6 +955,7 @@ enum dc_psr_version {
 /* Possible values of display_endpoint_id.endpoint */
 enum display_endpoint_type {
        DISPLAY_ENDPOINT_PHY = 0, /* Physical connector. */
+       DISPLAY_ENDPOINT_USB4_DPIA, /* USB4 DisplayPort tunnel. */
        DISPLAY_ENDPOINT_UNKNOWN = -1
 };