drm/amd/display: rename hdmi_frl_pcon_support
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Wed, 22 Jun 2022 20:07:33 +0000 (16:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Jul 2022 20:17:39 +0000 (16:17 -0400)
hdmi_frl_pcon_support has been the source of confusion. So, rename it to
dp_hdmi21_pcon_support.

Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c
drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c
drivers/gpu/drm/amd/display/dc/dcn316/dcn316_resource.c
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c
drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c

index 07e5b316fbde548dad2e48f8d114a2a12e0834ca..a126921c664ac77cace0584af88f966a7381fe90 100644 (file)
@@ -4890,7 +4890,7 @@ static void get_active_converter_info(
                                                        hdmi_color_caps.bits.MAX_BITS_PER_COLOR_COMPONENT);
 
 #if defined(CONFIG_DRM_AMD_DC_DCN)
-                                       if (link->dc->caps.hdmi_frl_pcon_support) {
+                                       if (link->dc->caps.dp_hdmi21_pcon_support) {
                                                union hdmi_encoded_link_bw hdmi_encoded_link_bw;
 
                                                link->dpcd_caps.dongle_caps.dp_hdmi_frl_max_link_bw_in_kbps =
index b9a23e6b3696e71aba6b0950d0f8909213aacbb4..a9c59669dd1d167ab62d6748554a96107f6383dc 100644 (file)
@@ -203,7 +203,7 @@ struct dc_caps {
        struct dc_color_caps color;
        struct dc_dmub_caps dmub_caps;
        bool dp_hpo;
-       bool hdmi_frl_pcon_support;
+       bool dp_hdmi21_pcon_support;
        bool edp_dsc_support;
        bool vbios_lttpr_aware;
        bool vbios_lttpr_enable;
index a0a94ea58a57fc494afc39af4196da2afbd01b00..1483de85a524e654e52be44a17f16ba21d90f38b 100644 (file)
@@ -2463,7 +2463,7 @@ static bool dcn20_resource_construct(
        dc->caps.color.mpc.ogam_rom_caps.hlg = 0;
        dc->caps.color.mpc.ocsc = 1;
 
-       dc->caps.hdmi_frl_pcon_support = true;
+       dc->caps.dp_hdmi21_pcon_support = true;
 
        if (dc->ctx->dce_environment == DCE_ENV_PRODUCTION_DRV) {
                dc->debug = debug_defaults_drv;
index faab59508d8292a74954ba59b602b4322647b05f..d95875952fbafeeafa8157b906bdcd0faf7fd0ee 100644 (file)
@@ -1490,7 +1490,7 @@ static bool dcn21_resource_construct(
        dc->caps.color.mpc.ogam_rom_caps.hlg = 0;
        dc->caps.color.mpc.ocsc = 1;
 
-       dc->caps.hdmi_frl_pcon_support = true;
+       dc->caps.dp_hdmi21_pcon_support = true;
 
        if (dc->ctx->dce_environment == DCE_ENV_PRODUCTION_DRV)
                dc->debug = debug_defaults_drv;
index b74d5f3f047249495945586cf2e73d8e7e7b41ca..4f684235a413d3f2e6300a49ffe701d6602e38f5 100644 (file)
@@ -2379,7 +2379,7 @@ static bool dcn30_resource_construct(
        dc->caps.color.mpc.ogam_rom_caps.hlg = 0;
        dc->caps.color.mpc.ocsc = 1;
 
-       dc->caps.hdmi_frl_pcon_support = true;
+       dc->caps.dp_hdmi21_pcon_support = true;
 
        /* read VBIOS LTTPR caps */
        {
index 1a67d04cc01785a76d2109f7a596154857399b36..16bbccc69fdc0851a93e8eb5840a6d6343c78b15 100644 (file)
@@ -1898,7 +1898,7 @@ static bool dcn31_resource_construct(
        dc->caps.post_blend_color_processing = true;
        dc->caps.force_dp_tps4_for_cp2520 = true;
        dc->caps.dp_hpo = true;
-       dc->caps.hdmi_frl_pcon_support = true;
+       dc->caps.dp_hdmi21_pcon_support = true;
        dc->caps.edp_dsc_support = true;
        dc->caps.extended_aux_timeout_support = true;
        dc->caps.dmcub_support = true;
index e346a00f395fcef2f1f96232331563085f2b7259..df2abd8fe2eb395355bc984f4478c8a17bd93a6f 100644 (file)
@@ -1768,7 +1768,7 @@ static bool dcn315_resource_construct(
        dc->caps.post_blend_color_processing = true;
        dc->caps.force_dp_tps4_for_cp2520 = true;
        dc->caps.dp_hpo = true;
-       dc->caps.hdmi_frl_pcon_support = true;
+       dc->caps.dp_hdmi21_pcon_support = true;
        dc->caps.edp_dsc_support = true;
        dc->caps.extended_aux_timeout_support = true;
        dc->caps.dmcub_support = true;
index 1b170e2d546beeab178c1e06cde1cd3f409852bb..070fe10a004e588e84d020b94baf04e6f5415893 100644 (file)
@@ -1770,7 +1770,7 @@ static bool dcn316_resource_construct(
        dc->caps.post_blend_color_processing = true;
        dc->caps.force_dp_tps4_for_cp2520 = true;
        dc->caps.dp_hpo = true;
-       dc->caps.hdmi_frl_pcon_support = true;
+       dc->caps.dp_hdmi21_pcon_support = true;
        dc->caps.edp_dsc_support = true;
        dc->caps.extended_aux_timeout_support = true;
        dc->caps.dmcub_support = true;
index 65de38b9631287cd8915c127f83422e43e3be526..5e9ffd43bc09c4ef873ac53a0c86bdc188f017f9 100644 (file)
@@ -4010,7 +4010,7 @@ static bool dcn32_resource_construct(
        dc->caps.post_blend_color_processing = true;
        dc->caps.force_dp_tps4_for_cp2520 = true;
        dc->caps.dp_hpo = true;
-       dc->caps.hdmi_frl_pcon_support = true;
+       dc->caps.dp_hdmi21_pcon_support = true;
        dc->caps.edp_dsc_support = true;
        dc->caps.extended_aux_timeout_support = true;
        dc->caps.dmcub_support = true;
index f38b16335086d1cf0b7962bc46f18000365bf286..da44044c8cc581587be17b26230333344b721ddf 100644 (file)
@@ -2305,7 +2305,7 @@ static bool dcn321_resource_construct(
        dc->caps.post_blend_color_processing = true;
        dc->caps.force_dp_tps4_for_cp2520 = true;
        dc->caps.dp_hpo = true;
-       dc->caps.hdmi_frl_pcon_support = true;
+       dc->caps.dp_hdmi21_pcon_support = true;
        dc->caps.edp_dsc_support = true;
        dc->caps.extended_aux_timeout_support = true;
        dc->caps.dmcub_support = true;