]> git.karo-electronics.de Git - linux-beck.git/commit
dmaengine: add support to provide error result from a DMA transation
authorDave Jiang <dave.jiang@intel.com>
Wed, 20 Jul 2016 20:13:50 +0000 (13:13 -0700)
committerVinod Koul <vinod.koul@intel.com>
Mon, 8 Aug 2016 02:41:42 +0000 (08:11 +0530)
commitf067025bc676ba8d18fba5f959598339e39b86db
treeda3f27f613b3c299cbd16434c57fdb90ddf1c970
parentb1f884a5ff23534c3808926aeb62187be55e751e
dmaengine: add support to provide error result from a DMA transation

Adding a new callback that will provide the error result for a transaction.
The result is allocated on the stack and the callback should create a copy
if it wishes to retain the information after exiting. The result parameter
is now defined and takes over the dummy void pointer we placed in the
helper functions previously. dmaengine drivers should start converting
to the new "callback_result" callback in order to receive transaction
results.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dmaengine.h
include/linux/dmaengine.h