[PATCH 2/3] spi: spi-xilinx: Clear dma_mask for xilinx spi controller
From: Michal Simek
Date: Tue Jun 04 2013 - 10:03:00 EST
From: Michal Simek <monstr@xxxxxxxxx>
mmc_spi driver tests if dma is available
through spi->master->dev.parent->dma_mask.
Microblaze supports DMA but xilinx_spi IP doesn't.
That's why clear dma_mask in the driver.
Signed-off-by: Michal Simek <michal.simek@xxxxxxxxxx>
---
drivers/spi/spi-xilinx.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c
index 34d18dc..d690756 100644
--- a/drivers/spi/spi-xilinx.c
+++ b/drivers/spi/spi-xilinx.c
@@ -365,6 +365,9 @@ struct spi_master *xilinx_spi_init(struct device *dev, struct resource *mem,
if (!master)
return NULL;
+ /* clear the dma_mask, to try to disable use of dma */
+ master->dev.dma_mask = 0;
+
/* the spi->mode bits understood by this driver: */
master->mode_bits = SPI_CPOL | SPI_CPHA;
--
1.8.2.3
Attachment:
pgp00000.pgp
Description: PGP signature