spi: fsi: Fix transfer returning without finalizing message
authorEddie James <eajames@linux.ibm.com>
Tue, 10 Nov 2020 21:47:36 +0000 (15:47 -0600)
committerMark Brown <broonie@kernel.org>
Wed, 11 Nov 2020 12:34:29 +0000 (12:34 +0000)
commitee4ad5d06509b3aea79b6a77bebd09ef891bed8d
tree65de0b6cd50285e4b2c31d171a380f075bd87c77
parent766c6b63aa044e84b045803b40b14754d69a2a1d
spi: fsi: Fix transfer returning without finalizing message

In the case that the SPI mux isn't set, the transfer_one_message
function returns without finalizing the message. This means that
the transfer never completes, resulting in hung tasks and an
eventual kernel panic. Fix it by finalizing the transfer in this
case.

Fixes: 9211a441e606 ("spi: fsi: Check mux status before transfers")
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20201110214736.25718-1-eajames@linux.ibm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsi.c