mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-05 22:17:40 -07:00
cadence_uart: Handle backend tx errors
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
576156ffed
commit
b52df46551
1 changed files with 1 additions and 3 deletions
|
|
@ -297,9 +297,7 @@ static void uart_write_tx_fifo(UartState *s, const uint8_t *buf, int size)
|
|||
return;
|
||||
}
|
||||
|
||||
while (size) {
|
||||
size -= qemu_chr_fe_write(s->chr, buf, size);
|
||||
}
|
||||
qemu_chr_fe_write_all(s->chr, buf, size);
|
||||
}
|
||||
|
||||
static void uart_receive(void *opaque, const uint8_t *buf, int size)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue