Skip to content

Commit 23edf7f

Browse files
jameszhu-amdalexdeucher
authored andcommitted
drm/amdgpu: fix typo for vcn2/jpeg2 idle check
fix typo for vcn2/jpeg2 idle check Signed-off-by: James Zhu <[email protected]> Reviewed-by: Leo Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 5e31fa6 commit 23edf7f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ static int jpeg_v2_0_set_clockgating_state(void *handle,
693693
bool enable = (state == AMD_CG_STATE_GATE);
694694

695695
if (enable) {
696-
if (jpeg_v2_0_is_idle(handle))
696+
if (!jpeg_v2_0_is_idle(handle))
697697
return -EBUSY;
698698
jpeg_v2_0_enable_clock_gating(adev);
699699
} else {

drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ static int vcn_v2_0_set_clockgating_state(void *handle,
12511251

12521252
if (enable) {
12531253
/* wait for STATUS to clear */
1254-
if (vcn_v2_0_is_idle(handle))
1254+
if (!vcn_v2_0_is_idle(handle))
12551255
return -EBUSY;
12561256
vcn_v2_0_enable_clock_gating(adev);
12571257
} else {

0 commit comments

Comments
 (0)