projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
379b49d
)
spi: ti_qspi: Fix SPI_3WIRE checking using mode
author
Jagan Teki
<jteki@openedev.com>
Thu, 3 Dec 2015 16:55:20 +0000
(22:25 +0530)
committer
Jagan Teki
<jteki@openedev.com>
Fri, 11 Dec 2015 16:42:23 +0000
(22:12 +0530)
SPI_3WIRE is spi mode not spi flags, so this patch fixed
the spi-3wire checking throgh mode instead of flags.
Cc: Mugunthan V N <mugunthanvnm@ti.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Jagan Teki <jteki@openedev.com>
drivers/spi/ti_qspi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/ti_qspi.c
b/drivers/spi/ti_qspi.c
index 646dd899d3ec262e1afdc22b66446d294540a257..5747ed1fa97213718579b4c1cebddc8b421743e6 100644
(file)
--- a/
drivers/spi/ti_qspi.c
+++ b/
drivers/spi/ti_qspi.c
@@
-293,7
+293,7
@@
int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout,
qslave->cmd = 0;
qslave->cmd |= QSPI_WLEN(8);
qslave->cmd |= QSPI_EN_CS(slave->cs);
- if (
flags
& SPI_3WIRE)
+ if (
qslave->mode
& SPI_3WIRE)
qslave->cmd |= QSPI_3_PIN;
qslave->cmd |= 0xfff;