From: Michal Simek <[email protected]> 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 <[email protected]> --- 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
pgptNwupE2hBG.pgp
Description: PGP signature

