spi: armada-3700: Set mode bits correctly
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 16 Dec 2016 09:33:25 +0000 (12:33 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 16 Dec 2016 12:28:36 +0000 (12:28 +0000)
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>
drivers/spi/spi-armada-3700.c

index 4e921782652f2549e5f004383a35050d586142ec..0314c6b9e04415b0cb792d8e9a4048a6311fd97d 100644 (file)
@@ -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);