diff options
author | Alain Volmat <alain.volmat@foss.st.com> | 2021-09-20 17:21:32 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-11-30 10:22:14 +0100 |
commit | 1229f82deaece681cda664d95c856b68062aa159 (patch) | |
tree | 5b80bc9dc7b547b11ed0747b84c9a811b7900759 /scripts/gdb/linux/utils.py | |
parent | 31b90a95ccbbb4b628578ac17e3b3cc8eeacfe31 (diff) |
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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions