diff options
author | 2013-06-28 20:39:12 +0800 | |
---|---|---|
committer | 2013-08-13 16:32:59 +0530 | |
commit | 7bb587f4eef8f71ce589f360ab99bb54ab0fc85d (patch) | |
tree | f2ab1f2830f68fe172224765f366c176d809717f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 3.11-rc4 (diff) | |
download | linux-dev-7bb587f4eef8f71ce589f360ab99bb54ab0fc85d.tar.xz linux-dev-7bb587f4eef8f71ce589f360ab99bb54ab0fc85d.zip |
dmaengine: add interface of dma_get_slave_channel
Suggested by Arnd, add dma_get_slave_channel interface
Dma host driver could get specific channel specificied by request line, rather than filter.
host example:
static struct dma_chan *xx_of_dma_simple_xlate(struct of_phandle_args *dma_spec,
struct of_dma *ofdma)
{
struct xx_dma_dev *d = ofdma->of_dma_data;
unsigned int request = dma_spec->args[0];
if (request > d->dma_requests)
return NULL;
return dma_get_slave_channel(&(d->chans[request].vc.chan));
}
probe:
of_dma_controller_register((&op->dev)->of_node, xx_of_dma_simple_xlate, d);
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions