Commit 0ee291a9b487015768465cfbf90366a43941a685
Committed by
Greg Kroah-Hartman
1 parent
6fe528da40
spi: imx: use pio mode for i.mx6dl
commit a02bb401f8ae264be782ee57d98bdd99f14c8022 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
drivers/spi/spi-imx.c
... | ... | @@ -823,6 +823,10 @@ |
823 | 823 | struct dma_slave_config slave_config = {}; |
824 | 824 | int ret; |
825 | 825 | |
826 | + /* use pio mode for i.mx6dl chip TKT238285 */ | |
827 | + if (of_machine_is_compatible("fsl,imx6dl")) | |
828 | + return 0; | |
829 | + | |
826 | 830 | /* Prepare for TX DMA: */ |
827 | 831 | master->dma_tx = dma_request_slave_channel(dev, "tx"); |
828 | 832 | if (!master->dma_tx) { |