]> 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)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 25 Sep 2024 18:05:48 +0000 (21:05 +0300)
commit1faa437db9b5e9217648f1e8db8a03ef93e5aed1
tree8ebbce82abc17f230aca5f06368a9da8b492de78
parent9b42e33bda413faa9d649643548b72a68f203f53
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>
(cherry picked from commit 6cce0dcc6f7aaaeb7f17577776da510b04f67c99)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/char/stm32l4x5_usart.c
tests/qtest/stm32l4x5_usart-test.c