summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorTrent Piepho <tpiepho@gmail.com>2013-10-01 13:15:11 -0700
committerMark Brown <broonie@linaro.org>2013-10-18 01:00:30 +0100
commit210f65fedf1d26d0a1d604fa82425018f7ad6090 (patch)
treedc9b845ea140e38b4bbae5a7ff5b9ea55de9f900 /drivers/spi
parent0b782f70b51b9e611a69b9d4533b44d66b2e3e75 (diff)
downloadop-kernel-dev-210f65fedf1d26d0a1d604fa82425018f7ad6090.zip
op-kernel-dev-210f65fedf1d26d0a1d604fa82425018f7ad6090.tar.gz
spi: spi-mxs: Remove full duplex check, spi core already does it
Because the driver sets the SPI_MASTER_HALF_DUPLEX flag, the spi core will check transfers to insure they are not full duplex. It's not necessary to check that in the spi-mxs driver as well. Signed-off-by: Trent Piepho <tpiepho@gmail.com> Cc: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@freescale.com> Cc: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-mxs.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c
index a9a273e..de7387e 100644
--- a/drivers/spi/spi-mxs.c
+++ b/drivers/spi/spi-mxs.c
@@ -399,12 +399,6 @@ static int mxs_spi_transfer_one(struct spi_master *master,
/* De-assert on last transfer, inverted by cs_change flag */
flag = (&t->transfer_list == m->transfers.prev) ^ t->cs_change ?
TXRX_DEASSERT_CS : 0;
- if ((t->rx_buf && t->tx_buf) || (t->rx_dma && t->tx_dma)) {
- dev_err(ssp->dev,
- "Cannot send and receive simultaneously\n");
- status = -EINVAL;
- break;
- }
/*
* Small blocks can be transfered via PIO.
OpenPOWER on IntegriCloud