Added appropriate unlocks to the previous spinlock
authorTom Knot <tomasknot@gmail.com>
Mon, 25 Jun 2018 19:06:18 +0000 (21:06 +0200)
committerTom Knot <tomasknot@gmail.com>
Mon, 25 Jun 2018 19:06:18 +0000 (21:06 +0200)
modules/unipi/src/unipi_uart.c
version.txt

index 7c0cd742530cbe5fcda386b52333b3b87411614c..287a6597476a5d7c3b39508c2451e99c833ef358 100644 (file)
@@ -304,6 +304,7 @@ void neuronspi_uart_handle_tx(struct neuronspi_port *port)
                spin_lock(&port->tx_lock);
                port->tx_work_count--;
                spin_unlock(&port->tx_lock);
+               spin_unlock(&port->port.lock);
                return;
        }
 
@@ -311,6 +312,7 @@ void neuronspi_uart_handle_tx(struct neuronspi_port *port)
                spin_lock(&port->tx_lock);
                port->tx_work_count--;
                spin_unlock(&port->tx_lock);
+               spin_unlock(&port->port.lock);
                return;
        }
 
index b989a461b0107463d594a7f70d6d2a66055f6187..d4b7292d2667bdc642b7bc841dfb60ab41f19a19 100644 (file)
@@ -1 +1 @@
-Repository:neuron-kernel ActiveBranch:[uart_timeout] PrecedingRelease:v.0.12 PrecedingRevision:55(3f2d211) LatestCommit:Mon Jun 25 21:02:00 CEST 2018
+Repository:neuron-kernel ActiveBranch:[uart_timeout] PrecedingRelease:v.0.12 PrecedingRevision:56(8a63b19) LatestCommit:Mon Jun 25 21:06:19 CEST 2018