spi: Set ctlr->cur_msg also in the sync transfer case
authorDavid Jander <david@protonic.nl>
Tue, 21 Jun 2022 06:12:32 +0000 (08:12 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 27 Jun 2022 12:27:24 +0000 (13:27 +0100)
commit72c5c59b659d54d0c824d0333a211f373316361d
treefcebe8c21a281fcd541dbc7a5d67321c0931ad99
parent1a9cafcb57b70fc1439d4a5cb28963122568967a
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>
drivers/spi/spi.c