diff options
author | Andrey Grodzovsky <andrey.grodzovsky@amd.com> | 2020-10-16 10:50:44 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-10-16 15:11:17 -0400 |
commit | 23d9bd60bd116c31936d012d79ba0e9972bafa9c (patch) | |
tree | 600aa5c4f21516c5d42ef58d647e9eed173a8ce9 | |
parent | 194f6b5d1f6264a2d17ef55d6bdaa886b7b43ad9 (diff) | |
download | linux-23d9bd60bd116c31936d012d79ba0e9972bafa9c.tar.gz linux-23d9bd60bd116c31936d012d79ba0e9972bafa9c.tar.bz2 linux-23d9bd60bd116c31936d012d79ba0e9972bafa9c.zip |
drm/amd/psp: Fix sysfs: cannot create duplicate filename
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>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 803b3abf2805..675b14a22f04 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -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; |