summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2018-02-02 20:24:23 +0300
committerAlex Deucher <alexander.deucher@amd.com>2018-02-19 22:19:19 +0300
commite5e0e8671713633f89451280e694d14206b38ef0 (patch)
tree3e3cbe444f47b4fb2c3a3292bb315c4c61eb0d79 /drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
parentac5d44fbf3cbd892ad81ab7f50da5ef39e806768 (diff)
downloadlinux-e5e0e8671713633f89451280e694d14206b38ef0.tar.xz
drm/amdgpu/dce: fix mask in dce_v*_0_is_in_vblank
Using the wrong mask. Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Noticed-by: Hans de Ruiter <hans@keasigmadelta.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/dce_v11_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/dce_v11_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
index 99bc1f36c96b..00b3df281207 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
@@ -210,7 +210,7 @@ static void dce_v11_0_audio_endpt_wreg(struct amdgpu_device *adev,
static bool dce_v11_0_is_in_vblank(struct amdgpu_device *adev, int crtc)
{
if (RREG32(mmCRTC_STATUS + crtc_offsets[crtc]) &
- CRTC_V_BLANK_START_END__CRTC_V_BLANK_START_MASK)
+ CRTC_STATUS__CRTC_V_BLANK_MASK)
return true;
else
return false;