OSDN Git Service

dmaengine: add DMA_PREP_CMD for non-Data descriptors.
authorAbhishek Sahu <absahu@codeaurora.org>
Tue, 1 Aug 2017 14:11:42 +0000 (19:41 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 28 Aug 2017 11:10:18 +0000 (16:40 +0530)
commit3e00ab4ac51c2ed47c28fd5000c47399f1a11cf5
tree67ced0d4b885d8a2c976545b249b014d8e4ad0eb
parenta63efead7f8eeefcf08e4e7d0b033ac552f7da23
dmaengine: add DMA_PREP_CMD for non-Data descriptors.

Some of the DMA controllers are capable of issuing the commands
to peripheral by the DMA. These commands can be list of register
reads/writes and its different from normal data reads/writes.
This patch adds new flag DMA_PREP_CMD in DMA API which tells
the driver that the data passed to DMA API is command data
and DMA controller driver will form descriptor in the required
format.

This flag can be used by any DMA controller driver which requires
the descriptor in different format for non-Data descriptors.

Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Documentation/dmaengine/provider.txt
include/linux/dmaengine.h