]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/arm/aspeed: Remove AspeedSoCState dependency from aspeed_uart_first() API
authorJamin Lin <jamin_lin@aspeedtech.com>
Mon, 13 Oct 2025 05:43:13 +0000 (13:43 +0800)
committerCédric Le Goater <clg@redhat.com>
Mon, 13 Oct 2025 12:37:55 +0000 (14:37 +0200)
commit03c9c22f9019a98973227bc49db8819a35e78680
tree6b7a52abf48c289c69e214ae41223c3af8f4a4f4
parent1f993447cf432cf1d2bf12284e80b395518ea0bc
hw/arm/aspeed: Remove AspeedSoCState dependency from aspeed_uart_first() API

Refactor the aspeed_uart_first() helper to remove its dependency on
AspeedSoCState and make the UART helper APIs more generic.

The function now takes uarts_base as an integer parameter instead of
requiring a full SoC class instance. Corresponding call sites in
aspeed.c and aspeed_soc_common.c are updated accordingly.

No functional change.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20251013054334.955331-2-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/arm/aspeed.c
hw/arm/aspeed_soc_common.c
include/hw/arm/aspeed_soc.h