Skip to content

Commit

Permalink
drm/amdgpu: fix typo for vcn1 idle check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
James Zhu authored and Alex Deucher committed Mar 18, 2020
1 parent dec9de2 commit acfc62d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit acfc62d

Please sign in to comment.