projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1f4c96
)
spi: sprd: Fix the incorrect SPI register
author
Huanpeng Xin
<huanpeng.xin@unisoc.com>
Wed, 4 Dec 2019 07:13:59 +0000
(15:13 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 4 Dec 2019 12:14:13 +0000
(12:14 +0000)
The original code used an incorrect SPI register to initialize the SPI
controller in sprd_spi_init_hw(), thus fix it.
Fixes:
e7d973a31c24
("spi: sprd: Add SPI driver for Spreadtrum SC9860")
Signed-off-by: Huanpeng Xin <huanpeng.xin@unisoc.com>
Signed-off-by: Baolin Wang <baolin.wang7@gmail.com>
Link:
https://lore.kernel.org/r/b4f7f89ec0fdc595335687bfbd9f962213bc4a1d.1575443510.git.baolin.wang7@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sprd.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-sprd.c
b/drivers/spi/spi-sprd.c
index
2ee1feb
..
6678f1c
100644
(file)
--- a/
drivers/spi/spi-sprd.c
+++ b/
drivers/spi/spi-sprd.c
@@
-678,7
+678,7
@@
static int sprd_spi_init_hw(struct sprd_spi *ss, struct spi_transfer *t)
if (d->unit != SPI_DELAY_UNIT_SCK)
return -EINVAL;
- val = readl_relaxed(ss->base + SPRD_SPI_CTL
7
);
+ val = readl_relaxed(ss->base + SPRD_SPI_CTL
0
);
val &= ~(SPRD_SPI_SCK_REV | SPRD_SPI_NG_TX | SPRD_SPI_NG_RX);
/* Set default chip selection, clock phase and clock polarity */
val |= ss->hw_mode & SPI_CPHA ? SPRD_SPI_NG_RX : SPRD_SPI_NG_TX;