OSDN Git Service

drm/amd/pm: remove some useless code for vangogh
authorXiaojian Du <Xiaojian.Du@amd.com>
Mon, 1 Feb 2021 08:37:49 +0000 (16:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Feb 2021 17:06:44 +0000 (12:06 -0500)
This patch is to remove some useless code for vangogh.
In the earlier code, vangogh can't finish all the sequence of
smu late init. But now vangogh has one stable work state,so
remove the useless code.

Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Acked-by: Xiaomeng Hou <Xiaomeng.Hou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

index 1c7ac81..c00f3f5 100644 (file)
@@ -612,9 +612,6 @@ static int smu_late_init(void *handle)
                return ret;
        }
 
-       if (adev->asic_type == CHIP_VANGOGH)
-               return 0;
-
        ret = smu_set_default_od_settings(smu);
        if (ret) {
                dev_err(adev->dev, "Failed to setup default OD settings!\n");