diff options
| author | Mateusz Litwin <mateusz.litwin@nokia.com> | 2025-12-19 00:33:04 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-01-17 18:35:33 +0300 |
| commit | 69695f5331d4d670eff76376faa3aeb5d68733e3 (patch) | |
| tree | 39eae7c89873d0f658aaf6097c51ec1740bcc997 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 81531bdea972c3cd8f147f61ca6027fa24e08fc3 (diff) | |
| download | linux-69695f5331d4d670eff76376faa3aeb5d68733e3.tar.xz | |
spi: cadence-quadspi: Prevent lost complete() call during indirect read
[ Upstream commit d67396c9d697041b385d70ff2fd59cb07ae167e8 ]
A race condition exists between the read loop and IRQ `complete()` call.
An interrupt could call the complete() between the inner loop and
reinit_completion(), potentially losing the completion event and causing
an unnecessary timeout. Moving reinit_completion() before the loop
prevents this. A premature signal will only result in a spurious wakeup
and another wait cycle, which is preferable to waiting for a timeout.
Signed-off-by: Mateusz Litwin <mateusz.litwin@nokia.com>
Link: https://patch.msgid.link/20251218-cqspi_indirect_read_improve-v2-1-396079972f2a@nokia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
