#if NEURONSPI_SCHED_REQUIRED > 0
#include <uapi/linux/sched/types.h>
#endif
-#define NEURONSPI_MAJOR_VERSIONSTRING "Version 1.60:2021:02:02"
+#define NEURONSPI_MAJOR_VERSIONSTRING "Version 1.61:2021:02:06"
#define NEURONSPI_MAX_DEVS 3
#define NEURONSPI_MAX_UART 16
spi->bits_per_word = 8;
spi->mode = spi->mode ? spi->mode : SPI_MODE_0;
spi->max_speed_hz = spi->max_speed_hz ? spi->max_speed_hz : 12000000;
+ spi->master->rt = 1;
ret = spi_setup(spi);
if (ret) {
kfree(n_spi);
// Set rt priority to spi controller
//dev_info(&ctlr->dev, "will run message pump with realtime priority\n");
+#if 0
+ /* replaced by spi->master->rt = 1 */
if (spi->controller->kworker_task)
sched_setscheduler(spi->controller->kworker_task, SCHED_FIFO, &rt_param);
-
+#endif
if (spi->controller->set_cs != unipi_spi_set_cs) {
unipi_spi_master_set_cs = spi->controller->set_cs;
unipi_spi_master_flag = spi->controller->flags;