spi: stm32h7: don't wait for EOT and flush fifo on disable
authorAlain Volmat <alain.volmat@foss.st.com>
Wed, 7 Jul 2021 08:27:05 +0000 (10:27 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 11 Jul 2021 22:51:42 +0000 (23:51 +0100)
commitdc6620c31326bc50fa22fd8900a9f995d0a04bc1
tree7243797478659cd88c858cb8bd0c7e232e738b9a
parentd87a5d64b5037cfedd7eb47d785b5c159ace8d9b
spi: stm32h7: don't wait for EOT and flush fifo on disable

In nominal cases, disable is called as part of the unprepare_message,
after receiving a EOT and after receiving all data so it doesn't
make sense to check for EOT and empty the FIFO.
Moreover, at the end of the disable, the SPI is disable (SPE) leading
to clear of all internal FIFO, leaving the IP in a known status.

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