Skip to content

Commit 5e31fa6

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ static int vcn_v1_0_set_clockgating_state(void *handle,
13521352

13531353
if (enable) {
13541354
/* wait for STATUS to clear */
1355-
if (vcn_v1_0_is_idle(handle))
1355+
if (!vcn_v1_0_is_idle(handle))
13561356
return -EBUSY;
13571357
vcn_v1_0_enable_clock_gating(adev);
13581358
} else {

0 commit comments

Comments
 (0)