diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-03-04 20:47:20 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-03-09 20:12:05 +0000 |
| commit | 68c8c93fdb0de7e528dc3dfb1d17eb0f652259b8 (patch) | |
| tree | 77e1bdfa093bd7a5d8ed833b8a4c52a17fd55462 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 40f9bc646db5aa89fb85f2cda1e55a2bf9d6a30c (diff) | |
spi: nxp-fspi: Use reinit_completion() for repeated operations
The driver currently calls init_completion() during every spi_mem_op.
Tchnically it may work, but it's not the recommended pattern.
According to the kernel documentation: Calling init_completion() on
the same completion object twice is most likely a bug as it
re-initializes the queue to an empty queue and enqueued tasks
could get "lost" - use reinit_completion() in that case, but be
aware of other races.
So moves the initial initialization to probe function and uses
reinit_completion() for subsequent operations.
Fixes: a5356aef6a90 ("spi: spi-mem: Add driver for NXP FlexSPI controller")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
Link: https://patch.msgid.link/20260304-spi-nxp-v2-2-cd7d7726a27e@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
