diff options
author | 2023-08-08 18:19:06 +0200 | |
---|---|---|
committer | 2023-08-22 15:28:51 +0200 | |
commit | 2490a0ca5735714bd2ba8ba8a41fa9343b422113 (patch) | |
tree | ea22bc74a86e875ac1e154c00601fab0994b981c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | serial: stm32: replace access to DMAR bit by dmaengine_pause/resume (diff) | |
download | linux-rng-2490a0ca5735714bd2ba8ba8a41fa9343b422113.tar.xz linux-rng-2490a0ca5735714bd2ba8ba8a41fa9343b422113.zip |
serial: stm32: synchronize RX DMA channel in shutdown
In shutdown, RX DMA channel is terminated. If the DMA RX callback is
scheduled but not yet executed, while a new RX DMA transfer is started, the
callback can be executed, and then disturb the ongoing RX DMA transfer.
To avoid such a case, call dmaengine_synchronize in shutdown, after the
DMA RX channel is terminated.
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Link: https://lore.kernel.org/r/20230808161906.178996-7-valentin.caron@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions