diff options
author | Lukas Wunner <[email protected]> | 2018-11-08 08:06:10 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2018-11-28 15:42:47 +0000 |
commit | dbc944115eed48af110646992893dc43321368d8 (patch) | |
tree | 39293df4e885c9a5860bf01c25e00f0fcb0c2e62 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 56c1723426d3cfd4723bfbfce531d7b38bae6266 (diff) |
spi: bcm2835: Fix book-keeping of DMA termination
If submission of a DMA TX transfer succeeds but submission of the
corresponding RX transfer does not, the BCM2835 SPI driver terminates
the TX transfer but neglects to reset the dma_pending flag to false.
Thus, if the next transfer uses interrupt mode (because it is shorter
than BCM2835_SPI_DMA_MIN_LENGTH) and runs into a timeout,
dmaengine_terminate_all() will be called both for TX (once more) and
for RX (which was never started in the first place). Fix it.
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