mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
spi: omap-uwire: Remove full duplex check
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>
This commit is contained in:
parent
790fc55a77
commit
d7a7f6ec14
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user