]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Fri, 21 May 2021 14:32:11 +0000 (10:32 -0400)
commit7d66c31e70cccc60a282bda0d5d94272ea28b075
treebc7d6b8f03a42e2a5e44a1ca11d723512575a62d
parent26145efc3bf2e099a64d84f1cac851261e42f53a
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>
drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c