drm/amdgpu/vcn2.5: add cancel_delayed_work_sync before power gate
authorJames Zhu <James.Zhu@amd.com>
Wed, 19 May 2021 15:40:39 +0000 (11:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 21:03:30 +0000 (17:03 -0400)
commit2fb536ea42d557f39f70c755f68e1aa1ad466c55
tree5356b880316aa89cd28d13a144abde63414b9ea0
parent0c6013377b4027e69d8f3e63b6bf556b6cb87802
drm/amdgpu/vcn2.5: add cancel_delayed_work_sync before power gate

Add cancel_delayed_work_sync before set power gating state
to avoid race condition issue when power gating.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c