Skip to content

Commit b5689d2

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 acfc62d commit b5689d2

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
@@ -1217,7 +1217,7 @@ static int vcn_v2_0_set_clockgating_state(void *handle,
12171217

12181218
if (enable) {
12191219
/* wait for STATUS to clear */
1220-
if (vcn_v2_0_is_idle(handle))
1220+
if (!vcn_v2_0_is_idle(handle))
12211221
return -EBUSY;
12221222
vcn_v2_0_enable_clock_gating(adev);
12231223
} else {

0 commit comments

Comments
 (0)