]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/ast: Gen1: Fix open-coded register access
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 27 Mar 2026 13:33:02 +0000 (14:33 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 8 Apr 2026 09:04:49 +0000 (11:04 +0200)
commitd467bcab7b8a8c4494290f830bd6c3b6830a8ebf
tree1f8a0101760cae0f288c45a55dd32b1a29b3cbec
parent5e9ced3d6c291a956c8d39ee77bcd7cbbd3891fc
drm/ast: Gen1: Fix open-coded register access

Replace all open-coded access to MCR registers in Gen1 with the
appropriate calls to ast_moutdwm() and ast_mindwm(). Use MCR register
constants.

For the poll loop on MCR100, add ast_moutdwm_poll(). The helper polls
the register until it has been updated to the given value. Relax the
CPU while busy-waiting.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patch.msgid.link/20260327133532.79696-11-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_2000.c
drivers/gpu/drm/ast/ast_drv.c
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_reg.h