commit | 30c45005a46bf55ba52086da5e090ec5a2f1c949 | [log] [tgz] |
---|---|---|
author | Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> | Tue May 16 01:09:16 2017 +0200 |
committer | Vinod Koul <vinod.koul@intel.com> | Fri May 19 14:55:23 2017 +0530 |
tree | b816d40c7ed9baa351bcca0b50d48c22f3b6066f | |
parent | 427d5ecd270bad5b9ba15a42f0414accdfa4e2f8 [diff] |
dmaengine: rcar-dmac: implement device_synchronize() Implement the device_synchronize() callback which wait until a dma channel is stopped to provide a synchronization point. This protects the driver from multiple race conditions when terminating and freeing resources. E.g. the completion callback still running after device_terminate_all() has completed. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Vinod Koul <vinod.koul@intel.com>