Regarding the issue with SPI using DMA and the chip errata ERR009165.
How to enable SPI DMA using the workaround mentioned in the errata ERR009165.
In the code (spi-imx.c) it stats that it is not possible to use DMA with the i.MX6DL.
static int spi_imx_sdma_init(struct device *dev, struct spi_imx_data *spi_imx, struct spi_master *master){ int ret; /* use pio mode for i.mx6dl chip TKT238285 */ if (of_machine_is_compatible("fsl,imx6dl")) return 0;
/Per
If I apply the patch to the correct kernel, how to handle the code below (spi-imx.c)?
static int spi_imx_sdma_init(struct device *dev, struct spi_imx_data *spi_imx, struct spi_master *master){ int ret; /* use pio mode for i.mx6dl chip TKT238285 */ if (of_machine_is_compatible("fsl,imx6dl")) return 0;
/Per
Thanks Joan!
Do you know which kernel it is based on? I am using kernel 4.1.15 from NXP.
It seems that yours is based on a newer kernel than mine.
/Per