[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1612172024-3556-1-git-send-email-zhangzhaoge@loongson.cn>
Date: Mon, 1 Feb 2021 17:33:44 +0800
From: Zhaoge Zhang <zhangzhaoge@...ngson.cn>
To: maarten.lankhorst@...ux.intel.com, mripard@...nel.org,
tzimmermann@...e.de, airlied@...ux.ie, daniel@...ll.ch
Cc: dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: [PATCH] drm: Fix drm_atomic_get_new_crtc_state call error
This position is to clear the previous mask flags,
so drm_atomic_get_crtc_state should be used.
Signed-off-by: Zhaoge Zhang <zhangzhaoge@...ngson.cn>
---
drivers/gpu/drm/drm_atomic_uapi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/drm_atomic_uapi.c b/drivers/gpu/drm/drm_atomic_uapi.c
index 268bb69..07fe01b 100644
--- a/drivers/gpu/drm/drm_atomic_uapi.c
+++ b/drivers/gpu/drm/drm_atomic_uapi.c
@@ -313,8 +313,8 @@ drm_atomic_set_crtc_for_connector(struct drm_connector_state *conn_state,
return 0;
if (conn_state->crtc) {
- crtc_state = drm_atomic_get_new_crtc_state(conn_state->state,
- conn_state->crtc);
+ crtc_state = drm_atomic_get_crtc_state(conn_state->state,
+ conn_state->crtc);
crtc_state->connector_mask &=
~drm_connector_mask(conn_state->connector);
--
2.7.4
Powered by blists - more mailing lists