diff options
| author | Christophe Leroy <christophe.leroy@c-s.fr> | 2019-05-22 07:00:36 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2019-05-22 08:20:47 -0400 |
| commit | 44a042182cb1e9f7916e015c836967bf638b33c4 (patch) | |
| tree | 78489bbcc752ff2e97560811f59249448c7758d3 | |
| parent | 5caaf29af5ca82d5da8bc1d0ad07d9e664ccf1d8 (diff) | |
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>
| -rw-r--r-- | drivers/spi/spi-fsl-spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-fsl-spi.c b/drivers/spi/spi-fsl-spi.c index b36ac6aa3b1f..7fbdaf066719 100644 --- a/drivers/spi/spi-fsl-spi.c +++ b/drivers/spi/spi-fsl-spi.c | |||
| @@ -432,7 +432,6 @@ static int fsl_spi_do_one_msg(struct spi_master *master, | |||
| 432 | } | 432 | } |
| 433 | 433 | ||
| 434 | m->status = status; | 434 | m->status = status; |
| 435 | spi_finalize_current_message(master); | ||
| 436 | 435 | ||
| 437 | if (status || !cs_change) { | 436 | if (status || !cs_change) { |
| 438 | ndelay(nsecs); | 437 | ndelay(nsecs); |
| @@ -440,6 +439,7 @@ static int fsl_spi_do_one_msg(struct spi_master *master, | |||
| 440 | } | 439 | } |
| 441 | 440 | ||
| 442 | fsl_spi_setup_transfer(spi, NULL); | 441 | fsl_spi_setup_transfer(spi, NULL); |
| 442 | spi_finalize_current_message(master); | ||
| 443 | return 0; | 443 | return 0; |
| 444 | } | 444 | } |
| 445 | 445 | ||
