Files
linux/drivers
Mateusz Litwin 69695f5331 spi: cadence-quadspi: Prevent lost complete() call during indirect read
[ Upstream commit d67396c9d6 ]

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>
2026-01-17 16:35:33 +01:00
..
2026-01-17 16:35:10 +01:00
2026-01-17 16:35:11 +01:00
2025-09-22 09:35:21 -04:00
2026-01-02 12:57:29 +01:00