Skip to content

Commit

Permalink
spi: pl022: use DMA by default when probing from DT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Linus Walleij authored and Mark Brown committed May 28, 2013
1 parent e4aa937 commit 5b547a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/spi/spi-pl022.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5b547a7

Please sign in to comment.