]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/amd/psp: Fix sysfs: cannot create duplicate filename
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Fri, 16 Oct 2020 14:50:44 +0000 (10:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Oct 2020 19:11:17 +0000 (15:11 -0400)
psp sysfs not cleaned up on driver unload for sienna_cichlid

Fixes: ce87c98db428e7 ("drm/amdgpu: Include sienna_cichlid in USBC PD FW support.")
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c

index 803b3abf2805d093329812a5ae22543acba65f6a..675b14a22f049a85c96bf4b981bff5c678d63a63 100644 (file)
@@ -210,7 +210,8 @@ static int psp_sw_fini(void *handle)
                adev->psp.ta_fw = NULL;
        }
 
-       if (adev->asic_type == CHIP_NAVI10)
+       if (adev->asic_type == CHIP_NAVI10 ||
+           adev->asic_type == CHIP_SIENNA_CICHLID)
                psp_sysfs_fini(adev);
 
        return 0;