[RFC] pl08x: don't use dma_slave_config direction argument
Russell King - ARM Linux
linux at arm.linux.org.uk
Wed May 16 07:04:51 EDT 2012
This series removes the dependence on the dma_slave_config direction
argument for the PL08x DMA engine driver, and in doing so, we end up
with less code in the driver.
We now compute the cctl values for both directions, and continue to
select the appropriate one at prepare time. If this is found to be
invalid, the prepare function will return NULL.
However, we still use the direction argument in the slave configuration
call to determine whether we should report and fail an invalid
configuration. Eventually this will be removed.
* This has only been compile tested. Test feedback welcomed. *
drivers/dma/amba-pl08x.c | 196 +++++++++++++++++++++++++++++---------------
include/linux/amba/pl08x.h | 84 +------------------
2 files changed, 134 insertions(+), 146 deletions(-)
More information about the linux-arm-kernel
mailing list