[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/21] hw/char/imx_serial: Update all state before restarting age
From: |
Bernhard Beschow |
Subject: |
[PATCH 02/21] hw/char/imx_serial: Update all state before restarting ageing timer |
Date: |
Mon, 20 Jan 2025 21:37:29 +0100 |
Fixes characters to be "echoed" after each keystroke rather than after every
other since imx_serial_rx_fifo_ageing_timer_restart() would see ~UTS1_RXEMPTY
only after every other keystroke.
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
---
hw/char/imx_serial.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/char/imx_serial.c b/hw/char/imx_serial.c
index cb6761d40e..38b4865157 100644
--- a/hw/char/imx_serial.c
+++ b/hw/char/imx_serial.c
@@ -401,14 +401,14 @@ static void imx_put_data(void *opaque, uint32_t value)
if (fifo32_num_used(&s->rx_fifo) >= rxtl) {
s->usr1 |= USR1_RRDY;
}
-
- imx_serial_rx_fifo_ageing_timer_restart(s);
-
s->usr2 |= USR2_RDR;
s->uts1 &= ~UTS1_RXEMPTY;
if (value & URXD_BRK) {
s->usr2 |= USR2_BRCD;
}
+
+ imx_serial_rx_fifo_ageing_timer_restart(s);
+
imx_update(s);
}
--
2.48.1
- [PATCH 00/21] Add i.MX 8M Plus EVK machine, Bernhard Beschow, 2025/01/20
- [PATCH 01/21] hw/char/imx_serial: Fix reset value of UFCR register, Bernhard Beschow, 2025/01/20
- [PATCH 02/21] hw/char/imx_serial: Update all state before restarting ageing timer,
Bernhard Beschow <=
- [PATCH 03/21] hw/pci-host/designware: Expose MSI IRQ, Bernhard Beschow, 2025/01/20
- [PATCH 04/21] hw/usb/hcd-dwc3: Align global registers size with Linux, Bernhard Beschow, 2025/01/20
- [PATCH 07/21] hw/arm/fsl-imx8mp: Add SNVS, Bernhard Beschow, 2025/01/20
- [PATCH 05/21] hw/arm: Add i.MX 8M Plus EVK board, Bernhard Beschow, 2025/01/20