]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/ast: Split ast_detect_tx_chip() per chip generation
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 22 Sep 2025 08:36:03 +0000 (10:36 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 29 Sep 2025 11:28:09 +0000 (13:28 +0200)
commit59fedf46f782c024b74ceab7868e13f0e0f10c45
treef5d444652a3b4f89765aaa5b339448a50d57edf6
parentbcb011913488c5c8c17108d533ff6dee78527464
drm/ast: Split ast_detect_tx_chip() per chip generation

Gen4 and later models detect the TX chip from VGACRD1, while earlier
models detect from VGACRA3. Split up the detection helper into
two separate helpers. Use SZ_ constants instead of plain numbers.

Then inline the call into its only caller ast_device_create(). When
ast_device_create() gets split up per Gen, either call will remain.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/r/20250922083708.45564-4-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_2000.c
drivers/gpu/drm/ast/ast_2300.c
drivers/gpu/drm/ast/ast_drv.c
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/ast/ast_main.c