drm/amdgpu/jpeg2.5: add cancel_delayed_work_sync before power gate
authorJames Zhu <James.Zhu@amd.com>
Wed, 19 May 2021 16:04:38 +0000 (12:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 21:04:38 +0000 (17:04 -0400)
commit23f10a571da5eaa63b7845d16e2f49837e841ab9
tree5c5f6d24aeaeac99832976d6c8f96a78b0542a30
parentff48f6dbf0ff896c98d167a67a5b975fb034356b
drm/amdgpu/jpeg2.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/jpeg_v2_5.c