]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/jpeg3: add cancel_delayed_work_sync before power gate
authorJames Zhu <James.Zhu@amd.com>
Wed, 19 May 2021 16:08:20 +0000 (12:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 May 2021 14:32:12 +0000 (10:32 -0400)
commit223ce1d55cf9c311c4a3daa066bb58eff3388a3f
tree0990c4311de1d48351d4ba1ac3d3da233ebc3122
parent4271bf11bd5f833e9f3bb4c7b84628977e0e704f
drm/amdgpu/jpeg3: 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/jpeg_v3_0.c