Commit b52df465 authored by Edgar E. Iglesias's avatar Edgar E. Iglesias
Browse files

cadence_uart: Handle backend tx errors

parent 576156ff
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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)