diff options
author | Vijaya Krishna Nivarthi <[email protected]> | 2023-05-09 15:31:36 +0530 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-05-11 10:18:35 +0900 |
commit | 4c329f5da7cfa366bacfda1328a025dd38951317 (patch) | |
tree | a3ddbbe3311357dd8fa8f0694f8e061c4e08a7b7 /tools/perf/scripts/python/bin/intel-pt-events-record | |
parent | ac9a78681b921877518763ba0e89202254349d1b (diff) |
spi: spi-geni-qcom: Select FIFO mode for chip select
Spi geni driver switches between FIFO and DMA modes based on xfer length.
FIFO mode relies on M_CMD_DONE_EN interrupt for completion while DMA mode
relies on XX_DMA_DONE.
During dynamic switching, if FIFO mode is chosen, FIFO related interrupts
are enabled and DMA related interrupts are disabled. And viceversa.
Chip select shares M_CMD_DONE_EN interrupt with FIFO to check completion.
Now, if a chip select operation is preceded by a DMA xfer, M_CMD_DONE_EN
interrupt would have been disabled and hence it will never receive one
resulting in timeout.
For chip select, in addition to setting the xfer mode to FIFO,
select_mode() to FIFO so that required interrupts are enabled.
Fixes: e5f0dfa78ac7 ("spi: spi-geni-qcom: Add support for SE DMA mode")
Suggested-by: Praveen Talari <[email protected]
Signed-off-by: Vijaya Krishna Nivarthi <[email protected]
Reviewed-by: Douglas Anderson <[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/intel-pt-events-record')
0 files changed, 0 insertions, 0 deletions