spi: imx: use pio mode for i.mx6dl
authorRobin Gong <b38343@freescale.com>
Tue, 3 Feb 2015 02:25:53 +0000 (10:25 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 3 Feb 2015 12:17:01 +0000 (12:17 +0000)
For TKT238285 hardware issue which may cause txfifo store data twice can only
be caught on i.mx6dl, we use pio mode instead of DMA mode on i.mx6dl.

Fixes: f62caccd12c17e4 (spi: spi-imx: add DMA support)
Signed-off-by: Robin Gong <b38343@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
drivers/spi/spi-imx.c

index 961b97d43b430914ed317b9623d06f940e39d797..fe1b7699fab634a31ae9e903146b775c467ddd80 100644 (file)
@@ -823,6 +823,10 @@ static int spi_imx_sdma_init(struct device *dev, struct spi_imx_data *spi_imx,
        struct dma_slave_config slave_config = {};
        int ret;
 
+       /* use pio mode for i.mx6dl chip TKT238285 */
+       if (of_machine_is_compatible("fsl,imx6dl"))
+               return 0;
+
        /* Prepare for TX DMA: */
        master->dma_tx = dma_request_slave_channel(dev, "tx");
        if (!master->dma_tx) {