aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
authorDavid Jander <david@protonic.nl>2022-06-21 08:12:32 +0200
committerMark Brown <broonie@kernel.org>2022-06-27 13:27:24 +0100
commit72c5c59b659d54d0c824d0333a211f373316361d (patch)
treefcebe8c21a281fcd541dbc7a5d67321c0931ad99 /drivers/spi/spi.c
parentspi: Remove unneeded READ_ONCE for ctlr->busy flag (diff)
downloadlinux-dev-72c5c59b659d54d0c824d0333a211f373316361d.tar.xz
linux-dev-72c5c59b659d54d0c824d0333a211f373316361d.zip
spi: Set ctlr->cur_msg also in the sync transfer case
Some drivers rely on this to point to the currently processed message, so set this here also. Signed-off-by: David Jander <david@protonic.nl> Link: https://lore.kernel.org/r/20220621061234.3626638-10-david@protonic.nl Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r--drivers/spi/spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 29f42753ef0f..3df84f43918c 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -3957,6 +3957,7 @@ static void __spi_transfer_message_noqueue(struct spi_controller *ctlr, struct s
was_busy = ctlr->busy;
+ ctlr->cur_msg = msg;
ret = __spi_pump_transfer_message(ctlr, msg, was_busy);
if (ret)
goto out;