summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/git:
diff options
context:
space:
mode:
authorMateusz Litwin <mateusz.litwin@nokia.com>2025-12-18 22:33:04 +0100
committerMark Brown <broonie@kernel.org>2025-12-23 10:58:57 +0000
commitd67396c9d697041b385d70ff2fd59cb07ae167e8 (patch)
tree34cab41b6c99d58b8774143874ba7b6bf1eb9f0c /include/linux/platform_data/git:
parent9448598b22c50c8a5bb77a9103e2d49f134c9578 (diff)
spi: cadence-quadspi: Prevent lost complete() call during indirect read
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>
Diffstat (limited to 'include/linux/platform_data/git:')
0 files changed, 0 insertions, 0 deletions