serial: msm_geni_serial: Move UART Rx path errors to ipc logs

Currently when tty_insert_flip_string fails, errors are
logged to kernel dmesg. When application is not reading
data from tty buffer fast enough these errors are
resulting in excessive console logging.

Moved UART Rx path error messages to ipc logging,
in order to avoid excessive console logging.

Change-Id: If343275962990500935c57a1fde5964eda8d79d2
Signed-off-by: Visweswara Tanuku <quic_vtanuku@quicinc.com>
Signed-off-by: Panicker Harish <quic_pharish@quicinc.com>
This commit is contained in:
Panicker Harish
2024-04-23 16:42:53 +05:30
parent 89bb394204
commit a0831f66b5

View File

@@ -2010,8 +2010,8 @@ static int msm_geni_serial_handle_dma_rx(struct uart_port *uport, bool drop_rx)
(unsigned char *)(msm_port->rx_buf),
rx_bytes);
if (ret != rx_bytes) {
dev_err(uport->dev, "%s: ret %d rx_bytes %d\n",
__func__, ret, rx_bytes);
IPC_LOG_MSG(msm_port->ipc_log_rx, "%s: ret %d rx_bytes %d\n",
__func__, ret, rx_bytes);
WARN_ON_ONCE(1);
}
uport->icount.rx += ret;