dmaengine: Add flow controller information to dma_slave_config
authorViresh Kumar <viresh.kumar@st.com>
Wed, 1 Feb 2012 10:42:18 +0000 (16:12 +0530)
committerVinod Koul <vinod.koul@linux.intel.com>
Wed, 22 Feb 2012 12:45:36 +0000 (18:15 +0530)
commitdcc043dc0c60046cf6b75ca04a462314cf64e2ba
tree8d670aa8a2f3a5293fc202971d2c9006bf43156b
parent7414a1b8b2b99093d6a271a1220557e87dc1ae94
dmaengine: Add flow controller information to dma_slave_config

Flow controller is programmable for few controllers and there are few
intelligent peripherals like, Synopsys JPEG controller, that needs to be a flow
controller of DMA transfers on dest side.

For this, currently two drivers, pl08x and dw_dmac, support flow controller to
be passed from platform to these drivers.

Perhaps, this should be a part of struct dma_slave_config. This patch adds
another field device_fc to this structure. User drivers must pass this as true
if they want to be flow controller of certain transfers.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
include/linux/dmaengine.h