Added further UART debugging messages
authorTom Knot <tomasknot@gmail.com>
Mon, 25 Jun 2018 18:47:37 +0000 (20:47 +0200)
committerTom Knot <tomasknot@gmail.com>
Mon, 25 Jun 2018 18:47:37 +0000 (20:47 +0200)
modules/unipi/src/unipi_uart.c
version.txt

index cf9a6942c7a36aa9f6f1437cb514e86cd64eb75f..1dead89619ba0046c537ceb863a8037a839ce1df 100644 (file)
@@ -315,6 +315,7 @@ void neuronspi_uart_handle_tx(struct neuronspi_port *port)
 
        /* Get length of data pending in circular buffer */
        to_send = uart_circ_chars_pending(xmit);
+       printk(KERN_INFO "NEURONSPI UART_HANDLE_TX, to_send:%d, tx_work_count:%d\n", to_send, port->tx_work_count);
        if (likely(to_send)) {
                /* Limit to size of (TX FIFO / 2) */
                max_txlen = NEURONSPI_FIFO_SIZE >> 1;
@@ -329,7 +330,7 @@ void neuronspi_uart_handle_tx(struct neuronspi_port *port)
                                port->buf[i] = xmit->buf[xmit->tail];
                                xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
                        }
-
+                       printk(KERN_INFO "NEURONSPI UART_HANDLE_TX, to_send:%d, tx_work_count:%d\n", to_send, port->tx_work_count);
                        neuronspi_uart_fifo_write(port, to_send);
                }
                to_send = (to_send > NEURONSPI_FIFO_SIZE - NEURONSPI_FIFO_MIN_CONTINUOUS) ? NEURONSPI_FIFO_SIZE - NEURONSPI_FIFO_MIN_CONTINUOUS : to_send;
@@ -342,7 +343,7 @@ void neuronspi_uart_handle_tx(struct neuronspi_port *port)
                        port->buf[i] = xmit->buf[xmit->tail];
                        xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
                }
-
+               printk(KERN_INFO "NEURONSPI UART_HANDLE_TX, to_send:%d, tx_work_count:%d\n", to_send, port->tx_work_count);
                neuronspi_uart_fifo_write(port, to_send);
 
        }
index 714f86868978d4fc2c0c2ffcc6f2780b62d66372..dc4c93f526a8f4bb793639dbcb027b75c56e599e 100644 (file)
@@ -1 +1 @@
-Repository:neuron-kernel ActiveBranch:[uart_timeout] PrecedingRelease:v.0.12 PrecedingRevision:53(6a4f89f) LatestCommit:Mon Jun 25 20:32:30 CEST 2018
+Repository:neuron-kernel ActiveBranch:[uart_timeout] PrecedingRelease:v.0.12 PrecedingRevision:54(308ad0d) LatestCommit:Mon Jun 25 20:47:37 CEST 2018