spi: fsi: Fix spurious timeout
authorEddie James <eajames@linux.ibm.com>
Wed, 25 May 2022 16:58:51 +0000 (11:58 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 26 May 2022 13:43:28 +0000 (14:43 +0100)
commit61bf40ef51aa73f6216b33563271b6acf7ea8d70
treeb760dcdac713de3a994f7164a632ba767869d2d4
parent9c63b846e6df43e5b3d31263f7db545f32deeda3
spi: fsi: Fix spurious timeout

The driver may return a timeout error even if the status register
indicates that the transfer may proceed. Fix this by restructuring
the polling loop.

Fixes: 89b35e3f2851 ("spi: fsi: Implement a timeout for polling status")
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20220525165852.33167-2-eajames@linux.ibm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsi.c