Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fdaacc0 authored by Y.C. Chen's avatar Y.C. Chen Committed by Greg Kroah-Hartman
Browse files

drm/ast: fixed cursor may disappear sometimes



commit 7989b9ee8bafe5cc625381dd0c3c4586de27ca26 upstream.

Signed-off-by: default avatarY.C. Chen <yc_chen@aspeedtech.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f1c32bab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1236,7 +1236,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;
}