Skip to content

Commit 5efe0f3

Browse files
superm1alexdeucher
authored andcommitted
drm/amd: Don't initialize PSP twice for Navi3x
PSP functions are already set by psp_early_init() so initializing them a second time is unnecessary. No intended functional changes. Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 1e66a17 commit 5efe0f3

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3706,7 +3706,6 @@ static DEVICE_ATTR(psp_vbflash_status, 0440, amdgpu_psp_vbflash_status, NULL);
37063706
int amdgpu_psp_sysfs_init(struct amdgpu_device *adev)
37073707
{
37083708
int ret = 0;
3709-
struct psp_context *psp = &adev->psp;
37103709

37113710
if (amdgpu_sriov_vf(adev))
37123711
return -EINVAL;
@@ -3715,10 +3714,6 @@ int amdgpu_psp_sysfs_init(struct amdgpu_device *adev)
37153714
case IP_VERSION(13, 0, 0):
37163715
case IP_VERSION(13, 0, 7):
37173716
case IP_VERSION(13, 0, 10):
3718-
if (!psp->adev) {
3719-
psp->adev = adev;
3720-
psp_v13_0_set_psp_funcs(psp);
3721-
}
37223717
ret = sysfs_create_bin_file(&adev->dev->kobj, &psp_vbflash_bin_attr);
37233718
if (ret)
37243719
dev_err(adev->dev, "Failed to create device file psp_vbflash");

0 commit comments

Comments
 (0)