diff options
author | Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> | 2019-06-10 10:22:43 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-06-13 18:51:29 +0300 |
commit | a75e91bad717fea43358e7f743de5f93c4e5978f (patch) | |
tree | 7335b4583cf11b120a9ac447ea1f3e92f692c3d5 /drivers/spi/spi-stm32-qspi.c | |
parent | f3440d9a0da292dc4998d9393162fcfb996fd671 (diff) | |
download | linux-a75e91bad717fea43358e7f743de5f93c4e5978f.tar.xz |
spi: qup: fix PIO/DMA transfers.
- DMA/PIO:
If an error IRQ occurred during PIO or DMA mode make sure to log it so
on completion the transfer can be marked as an error.
- PIO:
Do not complete a transaction until all data has been transferred or
an error IRQ was flagged.
1) If there was no error IRQ, ignore the done flag IRQ
(QUP_OP_MAX_INPUT_DONE_FLAG) until all data for the transfer has been
processed: not doing so risks completing the transfer returning
uninitialized data in the buffers.
2) Under stress testing we have identified the need to
protect read/write operations against spurious IN/OUT service events.
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-stm32-qspi.c')
0 files changed, 0 insertions, 0 deletions