Commit 6c1cb08e authored by James Zhu's avatar James Zhu Committed by Alex Deucher

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

fix typo for vcn2.5/jpeg2.5 idle check
Signed-off-by: default avatarJames Zhu <James.Zhu@amd.com>
Reviewed-by: default avatarLeo Liu <leo.liu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 23edf7f1
...@@ -477,7 +477,7 @@ static int jpeg_v2_5_set_clockgating_state(void *handle, ...@@ -477,7 +477,7 @@ static int jpeg_v2_5_set_clockgating_state(void *handle,
continue; continue;
if (enable) { if (enable) {
if (jpeg_v2_5_is_idle(handle)) if (!jpeg_v2_5_is_idle(handle))
return -EBUSY; return -EBUSY;
jpeg_v2_5_enable_clock_gating(adev, i); jpeg_v2_5_enable_clock_gating(adev, i);
} else { } else {
......
...@@ -1673,7 +1673,7 @@ static int vcn_v2_5_set_clockgating_state(void *handle, ...@@ -1673,7 +1673,7 @@ static int vcn_v2_5_set_clockgating_state(void *handle,
return 0; return 0;
if (enable) { if (enable) {
if (vcn_v2_5_is_idle(handle)) if (!vcn_v2_5_is_idle(handle))
return -EBUSY; return -EBUSY;
vcn_v2_5_enable_clock_gating(adev); vcn_v2_5_enable_clock_gating(adev);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment