spi: xlp: reinitialize completion before each transfer block
PATCH 1/1 spi: xlp: reinitialize completion before each transfer block
Reinitialize the completion before each transfer block to prevent wait_for_completion_timeout() from returning immediately on a stale completion count left by a prior transfer block.
--- drivers/spi/spi-xlp.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/spi/spi-xlp.c +2 -0
@@ -279,6 +279,8 @@ static int xlp_spi_xfer_block(struct xlp_spi_priv *xs, xs->rx_len = (xs->rx_buf ==NULL ) ?0 : xfer_len; xs->txerrors = xs->rxerrors =0 ; +reinit_completion (&xs->done); +/* fill TXDATA_FIFO, then send the CMD */ if (xs->tx_len)xlp_spi_fill_txfifo (xs);
---
base-commit: a39c950806213f6861d00f90729acaaa21f2d95a
change-id: 20261103-xlp-4ee821c8a89d
Best regards,
Signature · 1 line
Felix Gu <[email protected]>
Mark Brown
maintainerQuoted 1 line · Felix Gu
spi: xlp: reinitialize completion before each transfer block
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-7.5
Thanks!
[1/1] spi: xlp: reinitialize completion before each transfer block
https://git.kernel.org/broonie/spi/c/bf0507562dd0
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark