#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
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;
-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