diff options
author | 2021-09-20 17:21:32 +0200 | |
---|---|---|
committer | 2021-11-30 10:22:14 +0100 | |
commit | 1229f82deaece681cda664d95c856b68062aa159 (patch) | |
tree | 5b80bc9dc7b547b11ed0747b84c9a811b7900759 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | i2c: stm32f7: stop dma transfer in case of NACK (diff) | |
download | wireguard-linux-1229f82deaece681cda664d95c856b68062aa159.tar.xz wireguard-linux-1229f82deaece681cda664d95c856b68062aa159.zip |
i2c: stm32f7: use proper DMAENGINE API for termination
dmaengine_terminate_all() is deprecated in favor of explicitly saying if
it should be sync or async. Here, we use dmaengine_terminate_sync in
i2c_xfer and i2c_smbus_xfer handlers and rely on
dmaengine_terminate_async within interrupt handlers
(transmission error cases).
dmaengine_synchronize is added within i2c_xfer and i2c_smbus_xfer handler
to finalize terminate started in interrupt handlers.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Reviewed-by: Pierre-Yves MORDRET <pierre-yves.mordret@foss.st.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions