public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 2/3] spi: armada-3700: Set mode bits correctly
@ 2016-12-16  9:33 Dan Carpenter
       [not found] ` <20161216093325.GA13942-mgFCXtclrQlZLf2FXnZxJA@public.gmane.org>
  2016-12-16 12:31 ` Applied "spi: armada-3700: Set mode bits correctly" to the spi tree Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2016-12-16  9:33 UTC (permalink / raw)
  To: Mark Brown, Romain Perier
  Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA,
	kernel-janitors-u79uwXL29TY76Z2rM5mHXA

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>

diff --git a/drivers/spi/spi-armada-3700.c b/drivers/spi/spi-armada-3700.c
index 5c7508dc6f0b..40491be3365f 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);

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-16 12:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-16  9:33 [patch 2/3] spi: armada-3700: Set mode bits correctly Dan Carpenter
     [not found] ` <20161216093325.GA13942-mgFCXtclrQlZLf2FXnZxJA@public.gmane.org>
2016-12-16 10:30   ` Romain Perier
2016-12-16 12:31 ` Applied "spi: armada-3700: Set mode bits correctly" to the spi tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox