Skip to contentSkip to conversation

spi: imx: use pio mode for i.mx6dl

PATCH Applied Robin Gong 2 participants 2 messages Feb 3, 2015

Subsystems (2)
lore
Share & tools
lore

Robin Gong

author
#0 lore raw

PATCH 1/1 spi: imx: use pio mode for i.mx6dl

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.

---
 drivers/spi/spi-imx.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/spi/spi-imx.c +4 -0
index 961b97d..fe1b769 100644
@@ -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) {
Signature · 6 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer Applied
#1 lore raw
Quoted 2 lines · Robin Gong

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.