aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers
diff options
context:
space:
mode:
authorJames Zhu <James.Zhu@amd.com>2020-03-18 17:09:05 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-03-18 18:21:18 -0400
commitacfc62dc68770aa665cc606891f6df7d6d1e52c0 (patch)
tree5189327c4fab32131ed0b0b165303625800df62d /drivers
parentdrm/amd/display: Add link_rate quirk for Apple 15" MBP 2017 (diff)
downloadwireguard-linux-acfc62dc68770aa665cc606891f6df7d6d1e52c0.tar.xz
wireguard-linux-acfc62dc68770aa665cc606891f6df7d6d1e52c0.zip
drm/amdgpu: fix typo for vcn1 idle check
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
index 71f61afdc655..09b0572b838d 100644
--- a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
@@ -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 {