Re: [PATCH] bsps/riscv/riscv: Fix fe310_uart_read

2022-09-19 Thread Sebastian Huber
On 18/09/2022 21:22, Alan Cudmore wrote: Note: Resending after learning how to use git send-email, please disregard previous message. This fixes the riscv fe310 console driver fe310_uart_read function. The function reads the RX status/data register to check if data is available, but discards th

[PATCH] bsps/riscv/riscv: Fix fe310_uart_read

2022-09-18 Thread Alan Cudmore
Note: Resending after learning how to use git send-email, please disregard previous message. This fixes the riscv fe310 console driver fe310_uart_read function. The function reads the RX status/data register to check if data is available, but discards the data and reads it a seconds time. Also c

Subject: [PATCH] bsps/riscv/riscv: Fix fe310_uart_read in console driver

2022-09-18 Thread Alan Cudmore
From: Alan Cudmore This fixes the riscv fe310 console driver fe310_uart_read function. The function reads the RX status/data register to check if data is available, but discards the data and reads it a second time. Also cleared the interrupt enable bit in the first_open function. Close #4719 ---