Messages in this thread Patch in this message | | | From | Michal Simek <> | Subject | [PATCH 2/3] spi: spi-xilinx: Clear dma_mask for xilinx spi controller | Date | Tue, 4 Jun 2013 16:02:35 +0200 |
| |
From: Michal Simek <monstr@monstr.eu>
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@xilinx.com> --- 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 [unhandled content-type:application/pgp-signature] | |