From b651d48498e03930e1a29503d277d719224ac6a6 Mon Sep 17 00:00:00 2001 From: Miroslav Ondra Date: Sun, 25 Apr 2021 12:55:05 +0200 Subject: [PATCH] Fix rt parameter setting for spi device --- modules/unipi/src/unipi_spi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/unipi/src/unipi_spi.c b/modules/unipi/src/unipi_spi.c index b6576ee..2841037 100644 --- a/modules/unipi/src/unipi_spi.c +++ b/modules/unipi/src/unipi_spi.c @@ -1238,7 +1238,9 @@ s32 neuronspi_spi_probe(struct spi_device *spi) 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; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0) spi->rt = 1; +#endif ret = spi_setup(spi); if (ret) { kfree(n_spi); -- 2.34.1