]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf813c0ea5e8854767f03114f15218a27a3308dc5
tree65de0b6cd50285e4b2c31d171a380f075bd87c77
parentedacd062417ec332308a6d2977f691bc23c7fd34
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: 6b933c826259 ("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