diff options
author | Quanyang Wang <quanyang.wang@windriver.com> | 2021-08-26 08:59:30 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-08-26 13:42:44 +0100 |
commit | 26cfc0dbe43aae60dc03af27077775244f26c167 (patch) | |
tree | 5659d0f725f952f5f93bd0bea4309f83dd7e713d /drivers/spi/spi-imx.c | |
parent | 0f887ac82971cbde59e563d6490c05c6b15aa82f (diff) |
spi: spi-zynq-qspi: use wait_for_completion_timeout to make zynq_qspi_exec_mem_op not interruptible
The function wait_for_completion_interruptible_timeout will return
-ERESTARTSYS immediately when receiving SIGKILL signal which is sent
by "jffs2_gcd_mtd" during umounting jffs2. This will break the SPI memory
operation because the data transmitting may begin before the command or
address transmitting completes. Use wait_for_completion_timeout to prevent
the process from being interruptible.
Fixes: 67dca5e580f1 ("spi: spi-mem: Add support for Zynq QSPI controller")
Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
Link: https://lore.kernel.org/r/20210826005930.20572-1-quanyang.wang@windriver.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-imx.c')
0 files changed, 0 insertions, 0 deletions