]> git.baikalelectronics.ru Git - kernel.git/commit
spi/pxa2xx: Don't use slave_id of dma_slave_config
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 19 Aug 2014 17:29:19 +0000 (20:29 +0300)
committerVinod Koul <vinod.koul@intel.com>
Thu, 18 Sep 2014 06:24:07 +0000 (11:54 +0530)
commit4ebf7b50788b44fa4648337a0834e47eefebd826
tree9e8020289c02e2894afabb6ef57fabaf20d77d56
parent86df1289c442b6618e89893426cb298862155768
spi/pxa2xx: Don't use slave_id of dma_slave_config

That field has been deprecated in favour of getting the necessary
information from ACPI/DT.

However, we still need to deal systems that are PCI only (no ACPI to back
up). In order to support such systems, we allow the DMA filter function and
its corresponding parameter via pxa2xx_spi_master platform data. Then when
the pxa2xx_spi_dma_setup() doesn't find the channel via ACPI, it falls back
to use the given filter function.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/spi/spi-pxa2xx-dma.c
drivers/spi/spi-pxa2xx-pci.c
drivers/spi/spi-pxa2xx.c
include/linux/spi/pxa2xx_spi.h