drm/amd: Fix unbind/rebind for VCN 4.0.5
authorMario Limonciello (AMD) <superm1@kernel.org>
Tue, 9 Dec 2025 04:46:46 +0000 (22:46 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Dec 2025 23:05:49 +0000 (18:05 -0500)
commit93a01629c8bfd30906c76921ec986802d76920c6
treeba058c224439ffc152d30fe53eaabe0eb8084f66
parent2e1da460916626fedbbc8518b9c4e1b064f201ed
drm/amd: Fix unbind/rebind for VCN 4.0.5

Unbinding amdgpu has no problems, but binding it again leads to an
error of sysfs file already existing.  This is because it wasn't
actually cleaned up on unbind.  Add the missing cleanup step.

Fixes: 547aad32edac ("drm/amdgpu: add VCN4 ip block support")
Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit d717e62e9b6ccff0e3cec78a58dfbd00858448b3)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c