Loading drivers/tty/serial/msm_geni_serial.c +8 −0 Original line number Diff line number Diff line Loading @@ -1729,6 +1729,14 @@ static int msm_geni_serial_handle_dma_rx(struct uart_port *uport, bool drop_rx) tty_flip_buffer_push(tport); dump_ipc(msm_port->ipc_log_rx, "DMA Rx", (char *)msm_port->rx_buf, 0, rx_bytes); /* * DMA_DONE interrupt doesn't confirm that the DATA is copied to * DDR memory, sometimes we are queuing the stale data from previous * transfer to tty flip_buffer, adding memset to zero * change to idenetify such scenario. */ memset(msm_port->rx_buf, 0, rx_bytes); exit_handle_dma_rx: return ret; Loading Loading
drivers/tty/serial/msm_geni_serial.c +8 −0 Original line number Diff line number Diff line Loading @@ -1729,6 +1729,14 @@ static int msm_geni_serial_handle_dma_rx(struct uart_port *uport, bool drop_rx) tty_flip_buffer_push(tport); dump_ipc(msm_port->ipc_log_rx, "DMA Rx", (char *)msm_port->rx_buf, 0, rx_bytes); /* * DMA_DONE interrupt doesn't confirm that the DATA is copied to * DDR memory, sometimes we are queuing the stale data from previous * transfer to tty flip_buffer, adding memset to zero * change to idenetify such scenario. */ memset(msm_port->rx_buf, 0, rx_bytes); exit_handle_dma_rx: return ret; Loading