]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-ti-qspi: Suspend the queue before removing the device
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Tue, 31 May 2016 15:56:23 +0000 (17:56 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 31 May 2016 17:51:58 +0000 (18:51 +0100)
commit2dab0822396506f3af2eb1c670216675fca62347
tree047dcf783c7a8b2523b51223ae399a38105ae6ca
parenteafb69e30fd2c5eb541ab8464cb7c24186e23039
spi: spi-ti-qspi: Suspend the queue before removing the device

Before disabling the pm_runtime, we must ensure that there is no transfer
in progress nor will a new one be started. Otherwise the message pump will
fail and in the end, the process requesting the transfer will be stuck.
This behavior has been observed when transferring data from a SPI flash
with dd while removing the module on a DRA7x-evm.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-ti-qspi.c