projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29f2133
)
spi: tegra114: fix PIO transfer
author
Sowjanya Komatineni
<skomatineni@nvidia.com>
Mon, 15 Apr 2019 21:30:26 +0000
(14:30 -0700)
committer
Mark Brown
<broonie@kernel.org>
Thu, 2 May 2019 01:38:40 +0000
(10:38 +0900)
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>
drivers/spi/spi-tegra114.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-tegra114.c
b/drivers/spi/spi-tegra114.c
index
b57f101
..
21e4fda
100644
(file)
--- a/
drivers/spi/spi-tegra114.c
+++ b/
drivers/spi/spi-tegra114.c
@@
-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;
}