Skip to content

Commit 6c1cb08

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ static int jpeg_v2_5_set_clockgating_state(void *handle,
477477
continue;
478478

479479
if (enable) {
480-
if (jpeg_v2_5_is_idle(handle))
480+
if (!jpeg_v2_5_is_idle(handle))
481481
return -EBUSY;
482482
jpeg_v2_5_enable_clock_gating(adev, i);
483483
} else {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1673,7 +1673,7 @@ static int vcn_v2_5_set_clockgating_state(void *handle,
16731673
return 0;
16741674

16751675
if (enable) {
1676-
if (vcn_v2_5_is_idle(handle))
1676+
if (!vcn_v2_5_is_idle(handle))
16771677
return -EBUSY;
16781678
vcn_v2_5_enable_clock_gating(adev);
16791679
} else {

0 commit comments

Comments
 (0)