From 909ea1056eea7ea4cd566cf1985c4c37e79d4f1f Mon Sep 17 00:00:00 2001 From: Miroslav Ondra Date: Wed, 22 Jan 2020 16:16:58 +0100 Subject: [PATCH] Remove port locking in uart_stop_rx --- modules/unipi/src/unipi_uart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.34.1