[PATCH 2/4] spi: bcm2835: no longer requires SPI_MASTER_MUST_RX/TX

kernel at martin.sperl.org kernel at martin.sperl.org
Mon May 25 05:44:24 PDT 2015


From: Martin Sperl <kernel at martin.sperl.org>

Signed-off-by: Martin Sperl <kernel at martin.sperl.org>
---
 drivers/spi/spi-bcm2835.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-bcm2835.c b/drivers/spi/spi-bcm2835.c
index 59705ab..bfcc436 100644
--- a/drivers/spi/spi-bcm2835.c
+++ b/drivers/spi/spi-bcm2835.c
@@ -462,8 +462,6 @@ static void bcm2835_dma_init(struct spi_master *master, struct device *dev)
 	/* all went well, so set can_dma */
 	master->can_dma = bcm2835_spi_can_dma;
 	master->max_dma_len = 65535; /* limitation by BCM2835_SPI_DLEN */
-	/* need to do TX AND RX DMA, so we need dummy buffers */
-	master->flags = SPI_MASTER_MUST_RX | SPI_MASTER_MUST_TX;
 
 	return;
 
-- 
1.7.10.4




More information about the linux-rpi-kernel mailing list