drm/amdgpu: fix typo for vcn2/jpeg2 idle check

fix typo for vcn2/jpeg2 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>
This commit is contained in:
James Zhu 2020-03-18 17:10:56 -04:00 committed by Alex Deucher
parent 5e31fa6821
commit 23edf7f1a8
2 changed files with 2 additions and 2 deletions

View File

@ -693,7 +693,7 @@ static int jpeg_v2_0_set_clockgating_state(void *handle,
bool enable = (state == AMD_CG_STATE_GATE); bool enable = (state == AMD_CG_STATE_GATE);
if (enable) { if (enable) {
if (jpeg_v2_0_is_idle(handle)) if (!jpeg_v2_0_is_idle(handle))
return -EBUSY; return -EBUSY;
jpeg_v2_0_enable_clock_gating(adev); jpeg_v2_0_enable_clock_gating(adev);
} else { } else {

View File

@ -1251,7 +1251,7 @@ static int vcn_v2_0_set_clockgating_state(void *handle,
if (enable) { if (enable) {
/* wait for STATUS to clear */ /* wait for STATUS to clear */
if (vcn_v2_0_is_idle(handle)) if (!vcn_v2_0_is_idle(handle))
return -EBUSY; return -EBUSY;
vcn_v2_0_enable_clock_gating(adev); vcn_v2_0_enable_clock_gating(adev);
} else { } else {