After UART interrupt handler is installed and rx is enabled, if an rx
interrupt comes before hardware init, rx->cur will be updated. Then the
hardware init will reset BD and make rx->cur out of sync, move the hardware
init code before request_irq.
Signed-off-by: Xiaotian Feng <xiaotian.feng@xxxxxxxxxxxxx>
---
drivers/serial/cpm_uart/cpm_uart_core.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)