]> err.no Git - linux-2.6/commit
dmaengine: Add dma_client parameter to device_alloc_chan_resources
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Tue, 8 Jul 2008 18:58:58 +0000 (11:58 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 8 Jul 2008 18:58:58 +0000 (11:58 -0700)
commit848c536a37b8db4e461f14ca15fe29850151c822
treef4a88e92e31de28511e3a3de99200a77d2613dae
parent4a776f0aa922a552460192c07b56f4fe9cd82632
dmaengine: Add dma_client parameter to device_alloc_chan_resources

A DMA controller capable of doing slave transfers may need to know a
few things about the slave when preparing the channel. We don't want
to add this information to struct dma_channel since the channel hasn't
yet been bound to a client at this point.

Instead, pass a reference to the client requesting the channel to the
driver's device_alloc_chan_resources hook so that it can pick the
necessary information from the dma_client struct by itself.

[dan.j.williams@intel.com: fixed up fsldma and mv_xor]
Acked-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/dmaengine.c
drivers/dma/fsldma.c
drivers/dma/ioat_dma.c
drivers/dma/iop-adma.c
drivers/dma/mv_xor.c
include/linux/dmaengine.h