Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: spi-fsl-spi: call spi_finalize_current_message() at the end

spi_finalize_current_message() shall be called once all
actions are finished, otherwise the last actions might
step over a newly started transfer.

Fixes: c592becbe704 ("spi: fsl-(e)spi: migrate to generic master queueing")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Christophe Leroy and committed by
Mark Brown
44a04218 5caaf29a

+1 -1
+1 -1
drivers/spi/spi-fsl-spi.c
··· 432 432 } 433 433 434 434 m->status = status; 435 - spi_finalize_current_message(master); 436 435 437 436 if (status || !cs_change) { 438 437 ndelay(nsecs); ··· 439 440 } 440 441 441 442 fsl_spi_setup_transfer(spi, NULL); 443 + spi_finalize_current_message(master); 442 444 return 0; 443 445 } 444 446