Commit 1a2804652279828055ca99d84ec2819977a98f6e

Henrik Nordstrom 2014-06-26T12:22:11

KnC: Limit SPI transfers to 4KB. Beaglebone SPI kernel driver doesn't handle bigger transfers

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-knc.c b/driver-knc.c
index a360c11..269df9e 100644
--- a/driver-knc.c
+++ b/driver-knc.c
@@ -92,7 +92,7 @@ struct knc_die {
 	struct knc_core_state *core;
 };
 
-#define MAX_SPI_SIZE		(65536)
+#define MAX_SPI_SIZE		(4096)
 #define MAX_SPI_RESPONSES	(MAX_SPI_SIZE / (2 + 4 + 1 + 1 + 1 + 4))
 #define MAX_SPI_MESSAGE		(128)
 #define KNC_SPI_BUFFERS		(2)