summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-05-23 20:54:37 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-05-28 15:38:47 +0100
commit5b547a75405184d54d148132b9e4600516c49c6e (patch)
tree35c2d4e2c1781a66da5ba81a63083ba089541414
parente4aa937ec75df0eea0bee03bffa3303ad36c986b (diff)
downloadlinux-5b547a75405184d54d148132b9e4600516c49c6e.tar.gz
spi: pl022: use DMA by default when probing from DT
In the past we controlled the selection of DMA for a certain host by a boolean switch in the platform data. Currently there is no way to enable DMA on a PL022 probed from the device tree. Let's default to trying to obtain DMA channels in the DT case, and then we can always fail (and thus fall back to PIO mode). Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--drivers/spi/spi-pl022.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
index 371cc66f1a0e..3b246543282f 100644
--- a/drivers/spi/spi-pl022.c
+++ b/drivers/spi/spi-pl022.c
@@ -2083,6 +2083,7 @@ pl022_platform_data_dt_get(struct device *dev)
}
pd->bus_id = -1;
+ pd->enable_dma = 1;
of_property_read_u32(np, "num-cs", &tmp);
pd->num_chipselect = tmp;
of_property_read_u32(np, "pl022,autosuspend-delay",