drm/amdgpu/vcn1: add cancel_delayed_work_sync before power gate
authorJames Zhu <James.Zhu@amd.com>
Tue, 18 May 2021 14:58:22 +0000 (10:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 21:02:52 +0000 (17:02 -0400)
commitb95f045ea35673572ef46d6483ad8bd6d353d63c
treea7e430e2314461503ef9421d22095287aa9e07ce
parentba515a5821dc0d101ded0379b14b1d1471ebfaba
drm/amdgpu/vcn1: 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_v1_0.c