| From 795b349a1d78cb90e7a6cf8b8c74f15e23a01121 Mon Sep 17 00:00:00 2001 |
| From: James Zhu <James.Zhu@amd.com> |
| Date: Wed, 18 Mar 2020 17:09:05 -0400 |
| Subject: [PATCH] drm/amdgpu: fix typo for vcn1 idle check |
| |
| commit acfc62dc68770aa665cc606891f6df7d6d1e52c0 upstream. |
| |
| 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> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c |
| index 3dbc51f9d3b9..5f800e7ca7d4 100644 |
| --- a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c |
| +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c |
| @@ -1230,7 +1230,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 { |
| -- |
| 2.7.4 |
| |