diff options
author | Jimmy Kizito <Jimmy.Kizito@amd.com> | 2021-01-05 14:25:23 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-10-06 15:51:10 -0400 |
commit | 698d0a6fb7bb9583b02c0ab50cc0dd33d39c9226 (patch) | |
tree | b0ea7657f85afe14c898bc42b2d5b490af2049ef /drivers/gpu/drm/amd/display | |
parent | 892b74a646bb5f9bc386c40c818d2305c7496bfa (diff) | |
download | linux-698d0a6fb7bb9583b02c0ab50cc0dd33d39c9226.tar.bz2 |
drm/amd/display: Set DPIA link endpoint type
[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>
Diffstat (limited to 'drivers/gpu/drm/amd/display')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc_link.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dc_types.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index 20b4819b73e4..66182b8c217b 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -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; diff --git a/drivers/gpu/drm/amd/display/dc/dc_types.h b/drivers/gpu/drm/amd/display/dc/dc_types.h index 3c109c805447..15c353c389d8 100644 --- a/drivers/gpu/drm/amd/display/dc/dc_types.h +++ b/drivers/gpu/drm/amd/display/dc/dc_types.h @@ -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 }; |