Zhangfei Gao
7bb587f4ee
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>
2013-08-13 16:32:59 +05:30
..
2013-07-26 14:59:20 +02:00
2013-07-07 11:01:19 -07:00
2013-07-30 17:24:13 -04:00
2013-07-28 18:19:27 -07:00
2013-06-26 10:50:02 -07:00
2013-08-13 16:32:59 +05:30
2013-06-28 15:33:27 -03:00
2013-08-01 15:11:17 -07:00
2013-07-08 11:22:11 -07:00
2013-06-26 18:04:11 -07:00
2013-06-28 13:36:22 +02:00
2013-07-07 18:36:53 -07:00
2013-07-22 19:07:24 -07:00
2013-08-01 14:30:59 -04:00
2013-07-09 16:04:31 -07:00
2013-07-22 19:02:52 -07:00