]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu: fix typo for vcn1 idle check
authorJames Zhu <James.Zhu@amd.com>
Wed, 18 Mar 2020 21:09:05 +0000 (17:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Mar 2020 22:21:18 +0000 (18:21 -0400)
fix typo for vcn1 idle check

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c

index 71f61afdc6551d6c04f1d051ff7643fd51d6f2eb..09b0572b838d29d6a758a570555722b03cbba341 100644 (file)
@@ -1352,7 +1352,7 @@ static int vcn_v1_0_set_clockgating_state(void *handle,
 
        if (enable) {
                /* wait for STATUS to clear */
-               if (vcn_v1_0_is_idle(handle))
+               if (!vcn_v1_0_is_idle(handle))
                        return -EBUSY;
                vcn_v1_0_enable_clock_gating(adev);
        } else {