]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/char/stm32l4x5_usart.c: Enable USART ACK bit response
authorJacob Abrams <satur9nine@gmail.com>
Wed, 11 Sep 2024 04:32:55 +0000 (21:32 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 19 Sep 2024 11:58:58 +0000 (12:58 +0100)
commit6cce0dcc6f7aaaeb7f17577776da510b04f67c99
tree12d40280a9b351d44eb184165a24d4acf027e704
parentf21b07e272be756f7af0f0886b8abaaca9cde273
hw/char/stm32l4x5_usart.c: Enable USART ACK bit response

SW modifying USART_CR1 TE bit should cuase HW to respond by altering
USART_ISR TEACK bit, and likewise for RE and REACK bit.

This resolves some but not all issues necessary for the official STM USART
HAL driver to function as is.

Fixes: 87b77e6e01ca ("hw/char/stm32l4x5_usart: Enable serial read and write")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2540
Signed-off-by: Jacob Abrams <satur9nine@gmail.com>
Message-id: 20240911043255.51966-1-satur9nine@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/char/stm32l4x5_usart.c
tests/qtest/stm32l4x5_usart-test.c