Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 44a04218 authored by Christophe Leroy's avatar Christophe Leroy Committed by Mark Brown
Browse files

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: c592becb ("spi: fsl-(e)spi: migrate to generic master queueing")
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5caaf29a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -432,7 +432,6 @@ static int fsl_spi_do_one_msg(struct spi_master *master,
	}

	m->status = status;
	spi_finalize_current_message(master);

	if (status || !cs_change) {
		ndelay(nsecs);
@@ -440,6 +439,7 @@ static int fsl_spi_do_one_msg(struct spi_master *master,
	}

	fsl_spi_setup_transfer(spi, NULL);
	spi_finalize_current_message(master);
	return 0;
}