]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/arm/aspeed: fix connect_serial_hds_to_uarts
authorKenneth Jia <kenneth_jia@asus.com>
Thu, 12 Dec 2024 12:42:04 +0000 (20:42 +0800)
committerCédric Le Goater <clg@redhat.com>
Mon, 27 Jan 2025 08:38:15 +0000 (09:38 +0100)
commit8a139ae719616d85d835528a35f41eb23bfa54c7
treeb21c8b2c97e52cc86c8781fce9fb9e742b420b77
parented734377ab3f3f3cc15d7aa301a87ab6370f2eed
hw/arm/aspeed: fix connect_serial_hds_to_uarts

In the loop, we need ignore the index increase when uart == uart_chosen
We should increase the index only after we allocate a serial.

Signed-off-by: Kenneth Jia <kenneth_jia@asus.com>
Fixes: d2b3eaefb4d7 ("aspeed: Refactor UART init for multi-SoC machines")
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/r/5f9b0c53f1644922ba85522046e92f4c@asus.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/arm/aspeed.c