Merge "serial: msm_geni_serial: Prevent excessive logging due to WARN_ON"

This commit is contained in:
qctecmdr 2023-03-18 10:24:42 -07:00 committed by Gerrit - the friendly Code Review server
commit bc47f7d144

View File

@ -2260,7 +2260,7 @@ static int msm_geni_serial_handle_dma_rx(struct uart_port *uport, bool drop_rx)
if (ret != rx_bytes) {
dev_err(uport->dev, "%s: ret %d rx_bytes %d\n", __func__, ret, rx_bytes);
msm_geni_update_uart_error_code(msm_port, UART_ERROR_RX_TTY_INSERT_FAIL);
WARN_ON(1);
WARN_ON_ONCE(1);
}
uport->icount.rx += ret;
tty_flip_buffer_push(tport);
@ -2647,7 +2647,7 @@ static irqreturn_t msm_geni_wakeup_isr(int isr, void *dev)
if (!tty) {
UART_LOG_DBG(port->ipc_log_rx, uport->dev,
"%s: Unexpected wakeup ISR\n", __func__);
WARN_ON(1);
WARN_ON_ONCE(1);
spin_unlock_irqrestore(&uport->lock, flags);
return IRQ_HANDLED;
}