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