[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <c5f546072e530c42e7ca15745ffa16729d72a5ac.1370354549.git.michal.simek@xilinx.com>
Date: Tue, 4 Jun 2013 16:02:35 +0200
From: Michal Simek <michal.simek@...inx.com>
To: linux-kernel@...r.kernel.org
Cc: Michal Simek <monstr@...str.eu>,
Michal Simek <michal.simek@...inx.com>,
Peter Crosthwaite <pcrost@...inx.com>,
Mark Brown <broonie@...nel.org>,
Grant Likely <grant.likely@...aro.org>,
spi-devel-general@...ts.sourceforge.net
Subject: [PATCH 2/3] spi: spi-xilinx: Clear dma_mask for xilinx spi controller
From: Michal Simek <monstr@...str.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@...inx.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
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists