summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
diff options
context:
space:
mode:
authorJames Zhu <James.Zhu@amd.com>2020-03-18 23:59:38 +0300
committerAlex Deucher <alexander.deucher@amd.com>2020-07-01 08:59:11 +0300
commitdf3183b37a84dca12f6e87fe7034f6f7d885ad3c (patch)
tree3b81726237cf298b414a30ad7732df64f2b90103 /drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
parent86a9eb3f59ab31f2bcee0e4f4883118d321629a5 (diff)
downloadlinux-df3183b37a84dca12f6e87fe7034f6f7d885ad3c.tar.xz
drm/amdgpu: fix typo for vcn3/jpeg3 idle check
fix typo for vcn3/jpeg3 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/gpu/drm/amd/amdgpu/jpeg_v3_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
index 2fc778cad91a..9dbc616b38cb 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c
@@ -479,7 +479,7 @@ static int jpeg_v3_0_set_clockgating_state(void *handle,
bool enable = (state == AMD_CG_STATE_GATE) ? true : false;
if (enable) {
- if (jpeg_v3_0_is_idle(handle))
+ if (!jpeg_v3_0_is_idle(handle))
return -EBUSY;
jpeg_v3_0_enable_clock_gating(adev);
} else {