hw/char: cadence_uart: Ignore access when unclocked or in reset for uart_{read, write}()
commit9834ecaaea8dfe1def47431f096a2b77de3583a1
authorBin Meng <bmeng.cn@gmail.com>
Mon, 13 Sep 2021 15:07:21 +0000 (13 16:07 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 13 Sep 2021 15:07:21 +0000 (13 16:07 +0100)
tree15c87aae019bdfc27e0626a7150bfeafada0640b
parent7956a8f5dd702adf351575b2aee9dbd99001b61f
hw/char: cadence_uart: Ignore access when unclocked or in reset for uart_{read, write}()

Read or write to uart registers when unclocked or in reset should be
ignored. Add the check there, and as a result of this, the check in
uart_write_tx_fifo() is now unnecessary.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20210901124521.30599-6-bmeng.cn@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/char/cadence_uart.c