1
0
Fork 0

drm/amdgpu: fix typo for vcn1 idle check

[ Upstream commit acfc62dc68 ]

fix typo for vcn1 idle check

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
5.4-rM2-2.2.x-imx-squashed
James Zhu 2020-03-18 17:09:05 -04:00 committed by Greg Kroah-Hartman
parent d2faee42f9
commit 7ebc1e53a4
1 changed files with 1 additions and 1 deletions

View File

@ -1375,7 +1375,7 @@ static int vcn_v1_0_set_clockgating_state(void *handle,
if (enable) {
/* wait for STATUS to clear */
if (vcn_v1_0_is_idle(handle))
if (!vcn_v1_0_is_idle(handle))
return -EBUSY;
vcn_v1_0_enable_clock_gating(adev);
} else {