spi: pxa2xx: use DMA by default if supported
authorDan O'Donovan <dan@emutex.com>
Fri, 27 May 2016 18:57:48 +0000 (19:57 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 30 May 2016 16:09:31 +0000 (17:09 +0100)
commitc64e1265ae8516c0282b45e099ac5fbdb8486c4c
tree6733715dc8ed889c0a39215ccccb76457b316444
parent1a695a905c18548062509178b98bc91e67510864
spi: pxa2xx: use DMA by default if supported

Currently, even if the PXA2xx SPI master supports DMA, it won't be
enabled unless (i) the slave device is enumerated through ACPI, or
(ii) the slave device is registered with board-specific
controller_data specified.  Even then, there isn't a field in the
controller_data that explicitly enables dma - it just gets enabled
if the master supports it and controller_data is non-NULL.

This means that drivers which register SPI devices on a bus without
awareness of this controller cannot avail of DMA performance gains.

This patch allows DMA transfers to be used if supported.

Signed-off-by: Dan O'Donovan <dan@emutex.com>
Reviewed-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c