Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dmaengine: imx-sdma: fix buffer ownership
BD_DONE flag marks ownership of the buffer. When 1 SDMA owns the buffer, when 0 ARM owns it. When processing the buffers in sdma_update_channel_loop the ownership of the currently processed buffer was set to SDMA again before running the callback function of the buffer and while the sdma script may be running in parallel. So there was the possibility to get the buffer overwritten by SDMA before it has been processed by kernel leading to kind of random errors in the upper layers, e.g. bluetooth. Signed-off-by: Philipp Puschmann <philipp.puschmann@emlix.com>
- Loading branch information