drm/amdgpu/vcn2.0: add cancel_delayed_work_sync before power gate
authorJames Zhu <James.Zhu@amd.com>
Wed, 19 May 2021 15:26:32 +0000 (11:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 21:03:10 +0000 (17:03 -0400)
commit0c6013377b4027e69d8f3e63b6bf556b6cb87802
treed580e642a5eff1ce202ac92b118e31e866ab240d
parentb95f045ea35673572ef46d6483ad8bd6d353d63c
drm/amdgpu/vcn2.0: 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_0.c