Skip to content

Commit 4cf4b34

Browse files
jhovoldgregkh
authored andcommitted
serial: qcom-geni: drop unused receive parameter
Serial drivers should not be dropping characters themselves, but at least drop the unused 'drop' parameter from the receive handler for now. Reviewed-by: Douglas Anderson <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8173d74 commit 4cf4b34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/tty/serial/qcom_geni_serial.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ static void handle_rx_console(struct uart_port *uport, u32 bytes, bool drop)
580580
}
581581
#endif /* CONFIG_SERIAL_QCOM_GENI_CONSOLE */
582582

583-
static void handle_rx_uart(struct uart_port *uport, u32 bytes, bool drop)
583+
static void handle_rx_uart(struct uart_port *uport, u32 bytes)
584584
{
585585
struct qcom_geni_serial_port *port = to_dev_port(uport);
586586
struct tty_port *tport = &uport->state->port;
@@ -873,7 +873,7 @@ static void qcom_geni_serial_handle_rx_dma(struct uart_port *uport, bool drop)
873873
}
874874

875875
if (!drop)
876-
handle_rx_uart(uport, rx_in, drop);
876+
handle_rx_uart(uport, rx_in);
877877

878878
ret = geni_se_rx_dma_prep(&port->se, port->rx_buf,
879879
DMA_RX_BUF_SIZE,

0 commit comments

Comments
 (0)