diff options
| author | Changhuang Liang <changhuang.liang@starfivetech.com> | 2026-10-03 09:18:07 -0700 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-10-05 16:11:24 +0200 |
| commit | 37bc964c2da721eb5b96604529bb4f592e0e4c90 (patch) | |
| tree | 173e5975b13452f48d91bc965f8211ede0533963 /tools/perf/scripts/python/stackcollapse.py | |
| parent | ec79a280e8dd217cbfa3d1df15d6894f9153580c (diff) | |
spi: dw: Unconditionally stop DMA on errors
dw_spi_dma_stop() and dw_spi_enh_mem_dma_stop() only terminate a DMA
channel when the corresponding busy flag is set. They are only called
on error paths, where the flags are not guaranteed to match the state
of the DMA engine, so a channel may be left running.
Terminate the channels and clear the busy flags unconditionally in
dw_spi_dma_stop(). A channel may be missing when only one DMA channel
is available, so check for that.
With that the enhanced memory operation variant is no longer needed,
use dw_spi_dma_stop() there as well.
Suggested-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
Link: https://patch.msgid.link/20261003161807.59429-1-changhuang.liang@starfivetech.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
