drm/amdgpu/pm: Drop redundant setting code for pcie lanes
authorMa Jun <Jun.Ma2@amd.com>
Thu, 9 May 2024 05:50:56 +0000 (13:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 May 2024 20:11:52 +0000 (16:11 -0400)
Drop redundant setting code for pcie.lanes. It overwrites
the value get from pptable

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Acked-by: Yang Wang<kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c

index 5794b64..ca1c7ae 100644 (file)
@@ -702,8 +702,6 @@ static int init_non_clock_fields(struct pp_hwmgr *hwmgr,
                                ATOM_PPLIB_PCIE_LINK_WIDTH_MASK) >>
                                ATOM_PPLIB_PCIE_LINK_WIDTH_SHIFT) + 1;
 
-       ps->pcie.lanes = 0;
-
        ps->display.disableFrameModulation = false;
 
        rrr_index = (le32_to_cpu(pnon_clock_info->ulCapsAndSettings) &