]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit804f6a7c3ffd2055032adea20307608c9e46fc69
treedee37d82a6085301a2e021cc525d64f0410a0286
parent8ac55965d54ff7ea759e507d62df25c54cdf6a07
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