diff options
author | Lukas Wunner <[email protected]> | 2018-11-08 08:06:10 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2018-11-28 15:42:50 +0000 |
commit | e82b0b3828451c1cd331d9f304c6078fcd43b62e (patch) | |
tree | ebf9a84125a4407096f6c2298fac764626f40356 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dbc944115eed48af110646992893dc43321368d8 (diff) |
spi: bcm2835: Fix race on DMA termination
If a DMA transfer finishes orderly right when spi_transfer_one_message()
determines that it has timed out, the callbacks bcm2835_spi_dma_done()
and bcm2835_spi_handle_err() race to call dmaengine_terminate_all(),
potentially leading to double termination.
Prevent by atomically changing the dma_pending flag before calling
dmaengine_terminate_all().
Signed-off-by: Lukas Wunner <[email protected]>
Fixes: 3ecd37edaa2a ("spi: bcm2835: enable dma modes for transfers meeting certain conditions")
Cc: [email protected] # v4.2+
Cc: Mathias Duckeck <[email protected]>
Cc: Frank Pavlic <[email protected]>
Cc: Martin Sperl <[email protected]>
Cc: Noralf Trønnes <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions