projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
790fc55
)
spi: omap-uwire: Remove full duplex check
author
Axel Lin
<axel.lin@ingics.com>
Wed, 26 Mar 2014 11:22:08 +0000
(19:22 +0800)
committer
Mark Brown
<broonie@linaro.org>
Wed, 26 Mar 2014 16:40:59 +0000
(16:40 +0000)
This driver sets the SPI_MASTER_HALF_DUPLEX flag, so the spi core will check
transfers to ensure they are not full duplex.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-omap-uwire.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-omap-uwire.c
b/drivers/spi/spi-omap-uwire.c
index 95cc6948a2ba3f1579f39525c8d70eaec8c9ca66..f5176bbfa6f1c9c749f73838edef63f5cb065f9f 100644
(file)
--- a/
drivers/spi/spi-omap-uwire.c
+++ b/
drivers/spi/spi-omap-uwire.c
@@
-218,10
+218,6
@@
static int uwire_txrx(struct spi_device *spi, struct spi_transfer *t)
if (!t->tx_buf && !t->rx_buf)
return 0;
- /* Microwire doesn't read and write concurrently */
- if (t->tx_buf && t->rx_buf)
- return -EPERM;
-
w = spi->chip_select << 10;
w |= CS_CMD;