Skip to content

Commit a3c33e7

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

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
@@ -1672,7 +1672,7 @@ static int vcn_v2_5_set_clockgating_state(void *handle,
16721672
return 0;
16731673

16741674
if (enable) {
1675-
if (vcn_v2_5_is_idle(handle))
1675+
if (!vcn_v2_5_is_idle(handle))
16761676
return -EBUSY;
16771677
vcn_v2_5_enable_clock_gating(adev);
16781678
} else {

0 commit comments

Comments
 (0)