spi: stm32: Revert change that enabled controller before asserting CS
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 23 May 2024 10:33:25 +0000 (12:33 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 23 May 2024 11:35:09 +0000 (12:35 +0100)
commita827ad9b3c2fc243e058595533f91ce41a312527
tree5917413d4ba67ab6b3912e03570b72a6eac25d95
parentef13561d2b163ac0ae6befa53bca58a26dc3320b
spi: stm32: Revert change that enabled controller before asserting CS

On stm32mp157 enabling the controller before asserting CS makes the
hardware trigger spurious interrupts in a tight loop and the transfers
fail. Revert the commit that swapped the order of enable and CS. This
reintroduces the problem that swapping was supposed to fix, which
however is less grave.

Reported-by: Leonard Göhrs <l.goehrs@pengutronix.de>
Link: https://lore.kernel.org/all/39033ed7-3e57-4339-80b4-fc8919e26aa7@pengutronix.de/
Fixes: 52b62e7a5d4f ("spi: stm32: enable controller before asserting CS")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://msgid.link/r/20240523103326.792907-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c