diff options
author | 2016-12-16 12:33:25 +0300 | |
---|---|---|
committer | 2016-12-16 12:28:36 +0000 | |
commit | 42cd4ed888393b2bc8ddfd277aa2d0ec0c7e0259 (patch) | |
tree | 95c3b27f8c461d952fab9b84bf2cc63ab52b2d69 /drivers/spi/spi-armada-3700.c | |
parent | spi: armada-3700: fix unsigned compare than zero on irq (diff) | |
download | linux-42cd4ed888393b2bc8ddfd277aa2d0ec0c7e0259.tar.gz linux-42cd4ed888393b2bc8ddfd277aa2d0ec0c7e0259.tar.bz2 linux-42cd4ed888393b2bc8ddfd277aa2d0ec0c7e0259.zip |
spi: armada-3700: Set mode bits correctly
We set SPI_RX_DUAL twice instead of setting SPI_TX_DUAL.
Fixes: 5762ab71eb24 ("spi: Add support for Armada 3700 SPI Controller")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Romain Perier <romain.perier@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-armada-3700.c')
-rw-r--r-- | drivers/spi/spi-armada-3700.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-armada-3700.c b/drivers/spi/spi-armada-3700.c index 4e921782652f..0314c6b9e044 100644 --- a/drivers/spi/spi-armada-3700.c +++ b/drivers/spi/spi-armada-3700.c @@ -825,7 +825,7 @@ static int a3700_spi_probe(struct platform_device *pdev) master->unprepare_message = a3700_spi_unprepare_message; master->set_cs = a3700_spi_set_cs; master->flags = SPI_MASTER_HALF_DUPLEX; - master->mode_bits |= (SPI_RX_DUAL | SPI_RX_DUAL | + master->mode_bits |= (SPI_RX_DUAL | SPI_TX_DUAL | SPI_RX_QUAD | SPI_TX_QUAD); platform_set_drvdata(pdev, master); |