]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: remove clearance code of force_ffu_mode flag in dmub_psr_copy_settings()
authorZhongwei <Zhongwei.Zhang@amd.com>
Wed, 27 Nov 2024 05:58:17 +0000 (13:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Dec 2024 15:37:10 +0000 (10:37 -0500)
[Why/How]
The force_ffu_mode flag could be initialized at other place.

Reviewed-by: Robin Chen <robin.chen@amd.com>
Signed-off-by: Zhongwei <Zhongwei.Zhang@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@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/dce/dmub_psr.c

index cae18f8c1c9a085f3c24f3e28d434d874e2a3ef2..88c75c243bf8aeb8988619abd86cab67dd0baebf 100644 (file)
@@ -390,8 +390,7 @@ static bool dmub_psr_copy_settings(struct dmub_psr *dmub,
                !memcmp(link->dpcd_caps.sink_dev_id_str, DP_SINK_DEVICE_STR_ID_1,
                        sizeof(DP_SINK_DEVICE_STR_ID_1)))
                link->psr_settings.force_ffu_mode = 1;
-       else
-               link->psr_settings.force_ffu_mode = 0;
+
        copy_settings_data->force_ffu_mode = link->psr_settings.force_ffu_mode;
 
        if (((link->dpcd_caps.fec_cap.bits.FEC_CAPABLE &&