forked from Minki/linux
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: Sowjanya Komatineni <skomatineni@nvidia.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
29f2133717
commit
cc1b69fc5f
@ -641,8 +641,9 @@ static int tegra_spi_start_cpu_based_transfer(
|
||||
|
||||
tspi->is_curr_dma_xfer = false;
|
||||
|
||||
val |= SPI_DMA_EN;
|
||||
tegra_spi_writel(tspi, val, SPI_DMA_CTL);
|
||||
val = tspi->command1_reg;
|
||||
val |= SPI_PIO;
|
||||
tegra_spi_writel(tspi, val, SPI_COMMAND1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user