Skip to content

Commit

Permalink
drm/amd/psp: Fix sysfs: cannot create duplicate filename
Browse files Browse the repository at this point in the history
psp sysfs not cleaned up on driver unload for sienna_cichlid

Fixes: ce87c98 ("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>
Cc: stable@vger.kernel.org # 5.9.x
  • Loading branch information
Andrey Grodzovsky authored and Alex Deucher committed Oct 21, 2020
1 parent 5dff80b commit f1bcddf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,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;
Expand Down

0 comments on commit f1bcddf

Please sign in to comment.