diff mbox series

drm/ast: fixed cursor may disappear sometimes

Message ID 1540870486-4045-1-git-send-email-yc_chen@aspeedtech.com (mailing list archive)
State Mainlined, archived
Commit 7989b9ee8bafe5cc625381dd0c3c4586de27ca26
Headers show
Series drm/ast: fixed cursor may disappear sometimes | expand

Commit Message

陳雅正 Oct. 30, 2018, 3:34 a.m. UTC
From: "Y.C. Chen" <yc_chen@aspeedtech.com>

Signed-off-by: Y.C. Chen <yc_chen@aspeedtech.com>
---
 drivers/gpu/drm/ast/ast_mode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c
index 5e77d45..4e079d4 100644
--- a/drivers/gpu/drm/ast/ast_mode.c
+++ b/drivers/gpu/drm/ast/ast_mode.c
@@ -1254,7 +1254,7 @@  static int ast_cursor_move(struct drm_crtc *crtc,
 	ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xc7, ((y >> 8) & 0x07));
 
 	/* dummy write to fire HWC */
-	ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xCB, 0xFF, 0x00);
+	ast_show_cursor(crtc);
 
 	return 0;
 }