spi: stm32: always perform registers configuration prior to transfer
authorAlain Volmat <alain.volmat@st.com>
Mon, 10 Aug 2020 07:12:38 +0000 (09:12 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 10 Aug 2020 18:46:45 +0000 (19:46 +0100)
commit60ccb3515fc61a0124c70aa37317f75b67560024
treedee37d82a6085301a2e021cc525d64f0410a0286
parentdb96bf976a4fc65439be0b4524c0d41427d98814
spi: stm32: always perform registers configuration prior to transfer

SPI registers content may have been lost upon suspend/resume sequence.
So, always compute and apply the necessary configuration in
stm32_spi_transfer_one_setup routine.

Signed-off-by: Alain Volmat <alain.volmat@st.com>
Link: https://lore.kernel.org/r/1597043558-29668-6-git-send-email-alain.volmat@st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c