Commit cc1b69fc authored by Sowjanya Komatineni's avatar Sowjanya Komatineni Committed by Mark Brown

spi: tegra114: fix PIO transfer

This patch fixes PIO mode transfer to use PIO bit in SPI_COMMAND1 register.
Current driver uses DMA_EN instead of PIO bit.
Signed-off-by: default avatarSowjanya Komatineni <skomatineni@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 29f21337
...@@ -641,8 +641,9 @@ static int tegra_spi_start_cpu_based_transfer( ...@@ -641,8 +641,9 @@ static int tegra_spi_start_cpu_based_transfer(
tspi->is_curr_dma_xfer = false; tspi->is_curr_dma_xfer = false;
val |= SPI_DMA_EN; val = tspi->command1_reg;
tegra_spi_writel(tspi, val, SPI_DMA_CTL); val |= SPI_PIO;
tegra_spi_writel(tspi, val, SPI_COMMAND1);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment