spi: stm32: add a delay before SPI disable
authorValentin Caron <valentin.caron@foss.st.com>
Wed, 6 Sep 2023 13:27:35 +0000 (15:27 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 11 Sep 2023 00:24:00 +0000 (01:24 +0100)
commit6de8a70c84ee0586fdde4e671626b9caca6aed74
tree483995488b72c8d00f42b51f5a2266bbe9a603d6
parent18495676f7886e105133f1dc06c1d5e8d5436f32
spi: stm32: add a delay before SPI disable

As explained in errata sheet, in section "2.14.5 Truncation of SPI output
signals after EOT event":
On STM32MP1x, EOT interrupt can be thrown before the true end of
communication.

So we add a delay of a half period to wait the real end of the
transmission.

Link: https://www.st.com/resource/en/errata_sheet/es0539-stm32mp131x3x5x-device-errata-stmicroelectronics.pdf
Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Link: https://lore.kernel.org/r/20230906132735.748174-1-valentin.caron@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c