Quanyang Wang 26cfc0dbe4
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>
2021-08-26 13:42:44 +01:00
..
2021-06-03 14:05:00 +01:00
2021-04-26 16:32:11 -07:00
2020-10-08 23:00:06 +01:00
2021-08-12 12:19:19 +01:00
2020-10-24 10:33:08 -07:00
2021-08-26 12:09:38 +01:00
2021-08-05 16:42:53 +01:00
2021-05-11 15:42:47 +01:00