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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Sep 2020 09:29:31 +0000 (11:29 +0200)
commit5a2bc176c13d020b429f495d46d0dbb865da084f
tree3ba803a50192fc428b730c955153ce343c2d93b2
parentaccab06770476221101e781925ae1d9c5260d495
spi: stm32: always perform registers configuration prior to transfer

[ Upstream commit 60ccb3515fc61a0124c70aa37317f75b67560024 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-stm32.c