Hi:
I found that the default DSPI_TCF_MODE transmission is very slow. I want to speed up the SPI transmission, but I found that it seems that the DSPI_DMA_MODE transmission is not supported. When I change the mode to DSPI_EOQ_MODE, it will cause the kernel to crash. I would like to know what steps I should take to effectively speed up the transmission of data through SPI.
My changes are as follows:
in spi-fsl-dspi.c
static const struct fsl_dspi_devtype_data ls2085a_data = {
.trans_mode = DSPI_EOQ_MODE,
.max_clock_factor = 8,
};
Please refer to Linux Kernel source code provide by NXP.
https://github.com/nxp-qoriq/linux/blob/lf-5.10.y/drivers/spi/spi-fsl-dspi.c
Only the following two modes are supported.