diff mbox

spi: omap-uwire: Remove full duplex check

Message ID 1395832928.19941.4.camel@phoenix (mailing list archive)
State Accepted
Commit d7a7f6ec14fb07ed9c1167db760bc535b742b382
Headers show

Commit Message

Axel Lin March 26, 2014, 11:22 a.m. UTC
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>
---
 drivers/spi/spi-omap-uwire.c | 4 ----
 1 file changed, 4 deletions(-)

Comments

Mark Brown March 26, 2014, 4:41 p.m. UTC | #1
On Wed, Mar 26, 2014 at 07:22:08PM +0800, Axel Lin wrote:
> This driver sets the SPI_MASTER_HALF_DUPLEX flag, so the spi core will check
> transfers to ensure they are not full duplex.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-omap-uwire.c b/drivers/spi/spi-omap-uwire.c
index 95cc694..f5176bb 100644
--- 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;