Commit 42cd4ed8 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown

spi: armada-3700: Set mode bits correctly

We set SPI_RX_DUAL twice instead of setting SPI_TX_DUAL.

Fixes: 5762ab71 ("spi: Add support for Armada 3700 SPI Controller")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarRomain Perier <romain.perier@free-electrons.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f6f0083c
...@@ -825,7 +825,7 @@ static int a3700_spi_probe(struct platform_device *pdev) ...@@ -825,7 +825,7 @@ static int a3700_spi_probe(struct platform_device *pdev)
master->unprepare_message = a3700_spi_unprepare_message; master->unprepare_message = a3700_spi_unprepare_message;
master->set_cs = a3700_spi_set_cs; master->set_cs = a3700_spi_set_cs;
master->flags = SPI_MASTER_HALF_DUPLEX; 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); SPI_RX_QUAD | SPI_TX_QUAD);
platform_set_drvdata(pdev, master); platform_set_drvdata(pdev, master);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment