]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c9715e59d3ed8fac1be9d164fef83a39dc9b766
tree7243797478659cd88c858cb8bd0c7e232e738b9a
parent70114999eccdc9e9bdeea629d718b6beab4aec0a
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