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>
Fri, 21 May 2021 14:32:09 +0000 (10:32 -0400)
commitf55c0d65270a5e809b328f4cf90b52d157f3d1c5
tree945e7ca8624b95f86680478ad94fd4432a96c434
parent9f04eb7acffd125a961cc5f16e4d6f43ae0e6367
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>
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c