summarylogtreecommitdiffstats
path: root/sys-kernel_arch-sources-g14_files_6002-amdgpu-dm-kernel-5.8.patch
blob: 66685d33ba6a7b27941f72b7f1470019bab81fea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index db5e0bb0d935..bfbd56e857bf 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -1355,14 +1355,9 @@ static int dm_late_init(void *handle)
 	struct dmcu_iram_parameters params;
 	unsigned int linear_lut[16];
 	int i;
-	struct dmcu *dmcu = NULL;
+	struct dmcu *dmcu = adev->dm.dc->res_pool->dmcu;;
 	bool ret = true;
 
-	if (!adev->dm.fw_dmcu && !adev->dm.dmub_fw)
-		return detect_mst_link_for_all_connectors(adev->ddev);
-
-	dmcu = adev->dm.dc->res_pool->dmcu;
-
 	for (i = 0; i < 16; i++)
 		linear_lut[i] = 0xFFFF * i / 15;