I am trying to increase the buffer size of the SPI driver, to be greater than `4096`.
```
[root@luckfox ]# cat /sys/module/spidev/parameters/bufsiz
4096
```
I've recompiled with the below change. But it didn't do what I wanted.
```
--- a/sysdrv/source/kernel/arch/arm/boot/dts/rv1103g-luckfox-pico.dts
+++ b/sysdrv/source/kernel/arch/arm/boot/dts/rv1103g-luckfox-pico.dts
@@ -119,9 +119,13 @@ &usbdrd_dwc3 {
/**********SPI**********/
/* SPI0_M0 */
&spi0 {
- status = "disabled";
+ status = "okay";
spidev@0 {
spi-max-frequency = <50000000>;
+ /* Large buffer configuration */
+ bufsiz = <250000>; /* 128KB */
+ rx-buffer-size = <250000>;
+ tx-buffer-size = <250000>;
};
```
Can you please let me know how to update this value?
Increase SPI buffer size
Hello, the driver source code of spidev does not support the bufsiz attribute. You can directly refer to the source code of sysdrv/source/kernel/drivers/spi/spidev.c. The bbufsiz is registered to sysfs using the code "module_param(bufsiz, uint, S_IRUGO);" By default, it is 4096 and the user layer only has read permission. You can modify the spidev driver according to your actual needs.