- Changed UART startup ignore to proceed correctly if it cannot finish
authorTom Knot <tomasknot@gmail.com>
Thu, 14 Jun 2018 08:53:36 +0000 (10:53 +0200)
committerTom Knot <tomasknot@gmail.com>
Thu, 14 Jun 2018 08:53:36 +0000 (10:53 +0200)
- Version 0.12

modules/unipi/src/unipi_common.h
modules/unipi/src/unipi_spi.c
version.txt

index 7ee0910f68ac27f9d18aa38e1b8cab57867de030..d1121f8d0982f3a4d1839459f5d3a5e00f67ecb7 100644 (file)
@@ -51,7 +51,7 @@
 #if NEURONSPI_SCHED_REQUIRED > 0
        #include <uapi/linux/sched/types.h>
 #endif
-#define NEURONSPI_MAJOR_VERSIONSTRING "Development Beta Version 0.11:06:06:2018"
+#define NEURONSPI_MAJOR_VERSIONSTRING "Development Beta Version 0.12:14:06:2018"
 
 #define NEURONSPI_MAX_DEVS                             3
 #define NEURONSPI_MAX_UART                             128
index 41716c49855ab2b8a2938e9d7654313edd7a9a9c..30bfee234676c43d014484589f60d37801212841 100644 (file)
@@ -1000,13 +1000,7 @@ s32 neuronspi_spi_probe(struct spi_device *spi)
                memset(n_spi->first_probe_reply, 0, NEURONSPI_PROBE_MESSAGE_LEN);
                neuronspi_spi_send_message(spi, n_spi->send_buf, n_spi->first_probe_reply, NEURONSPI_PROBE_MESSAGE_LEN, NEURONSPI_DEFAULT_FREQ, 25, 1, 0);
                i++;
-               if (i > 1000) { // Sanity check to prevent looping if we get constant UART/0x41 messages
-                       ret = -ENODEV;
-                       kfree(n_spi);
-                       printk(KERN_INFO "NEURONSPI: Probe did not detect a valid Neuron device on CS %d\n", spi->chip_select);
-                       return ret;
-               }
-       } while (n_spi->first_probe_reply[0] == 0x41);  // UART messages should be ignored
+       } while (n_spi->first_probe_reply[0] == 0x41 && i < 1000);      // UART messages should be ignored
 
        if (n_spi->first_probe_reply[0] != 0) {         // CRC error sets the first byte to 0
                uart_count = n_spi->first_probe_reply[14] & 0x0f;
index 74af88c6458e4aa469afc3d27cef1227a0be272b..d195d5a6021308e686bd88b705aec55631f1064b 100644 (file)
@@ -1 +1 @@
-Repository:neuron-kernel ActiveBranch:[master] PrecedingRelease:v.0.10 PrecedingRevision:39(9533eb2) LatestCommit:Wed Jun 6 19:08:29 CEST 2018
+Repository:neuron-kernel ActiveBranch:[master] PrecedingRelease:v.0.10 PrecedingRevision:39(2b8571a) LatestCommit:Thu Jun 14 10:53:36 CEST 2018