diff mbox

[v1] spi: imx: use pio mode for i.mx6dl

Message ID 1422930353-4339-1-git-send-email-b38343@freescale.com (mailing list archive)
State Accepted
Commit a02bb401f8ae264be782ee57d98bdd99f14c8022
Headers show

Commit Message

Robin Gong Feb. 3, 2015, 2:25 a.m. UTC
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.

Signed-off-by: Robin Gong <b38343@freescale.com>
---
 drivers/spi/spi-imx.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Mark Brown Feb. 3, 2015, 12:18 p.m. UTC | #1
On Tue, Feb 03, 2015 at 10:25:53AM +0800, Robin Gong wrote:
> 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.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
index 961b97d..fe1b769 100644
--- a/drivers/spi/spi-imx.c
+++ b/drivers/spi/spi-imx.c
@@ -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) {