dmaengine: Move all map_sg/unmap_sg for slave channel to its client
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Wed, 9 Sep 2009 00:53:05 +0000 (17:53 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 9 Sep 2009 00:53:05 +0000 (17:53 -0700)
commit657a77fa7284d8ae28dfa48f1dc5d919bf5b2843
tree74fd6b5c2c35dcea18928a600ff34c04f8626cb6
parentbbea0b6e0d214ef1511b9c6ccf3af26b38f0af7d
dmaengine: Move all map_sg/unmap_sg for slave channel to its client

Dan Williams wrote:
... DMA-slave clients request specific channels and know the hardware
details at a low level, so it should not be too high an expectation to
push dma mapping responsibility to the client.

Also this patch includes DMA_COMPL_{SRC,DEST}_UNMAP_SINGLE support for
dw_dmac driver.

Acked-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/at_hdmac.c
drivers/dma/dw_dmac.c
drivers/mmc/host/atmel-mci.c