diff options
author | Rodrigo Siqueira <rodrigo.siqueira@amd.com> | 2023-04-26 18:17:13 -0600 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-06-09 09:39:41 -0400 |
commit | 9c384ee8f997d0646844cd431f1c23e6dbf84a98 (patch) | |
tree | c2e827a427a4bc98859e01dd62e60167044bb63b /drivers/gpu/drm/amd/display/dc/link | |
parent | 6ba5a269cdc9f447be882bbf99548361c8ebc254 (diff) | |
download | linux-stable-9c384ee8f997d0646844cd431f1c23e6dbf84a98.tar.gz linux-stable-9c384ee8f997d0646844cd431f1c23e6dbf84a98.tar.bz2 linux-stable-9c384ee8f997d0646844cd431f1c23e6dbf84a98.zip |
drm/amd/display: Convert connector signal id to string
To improve the readability of the of the log, this commit introduces a
function that converts the signal type id to a human-readable string.
Reviewed-by: Jerry Zuo <jerry.zuo@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/link')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/link/link_factory.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/link/link_factory.c b/drivers/gpu/drm/amd/display/dc/link/link_factory.c index 1515c817f03b..ac1c3e2e7c1d 100644 --- a/drivers/gpu/drm/amd/display/dc/link/link_factory.c +++ b/drivers/gpu/drm/amd/display/dc/link/link_factory.c @@ -563,11 +563,9 @@ static bool construct_phy(struct dc_link *link, goto create_fail; } - /* TODO: #DAL3 Implement id to str function.*/ - LINK_INFO("Connector[%d] description:" - "signal %d\n", + LINK_INFO("Connector[%d] description: signal: %s\n", init_params->connector_index, - link->connector_signal); + signal_type_to_string(link->connector_signal)); ddc_service_init_data.ctx = link->ctx; ddc_service_init_data.id = link->link_id; |