From: Miroslav Ondra Date: Wed, 22 Jan 2020 15:16:58 +0000 (+0100) Subject: Remove port locking in uart_stop_rx X-Git-Url: http://git.graph-it.com/?a=commitdiff_plain;h=909ea1056eea7ea4cd566cf1985c4c37e79d4f1f;p=graphit%2Funipi-kernel.git Remove port locking in uart_stop_rx --- diff --git a/modules/unipi/src/unipi_uart.c b/modules/unipi/src/unipi_uart.c index 4808d36..6d04b03 100644 --- a/modules/unipi/src/unipi_uart.c +++ b/modules/unipi/src/unipi_uart.c @@ -103,11 +103,11 @@ void neuronspi_uart_null_void(struct uart_port *port) void neuronspi_uart_stop_rx(struct uart_port *port) { struct neuronspi_port *n_port = to_neuronspi_port(port, port); - unsigned long flags; + /*unsigned long flags;*/ - spin_lock_irqsave(&port->lock, flags); + /*spin_lock_irqsave(&port->lock, flags);*/ n_port->accept_rx = 0; - spin_unlock_irqrestore(&port->lock, flags); + /*spin_unlock_irqrestore(&port->lock, flags);*/ } void neuronspi_uart_config_port(struct uart_port *port, int flags)