spi: stm32h7: rework rx fifo read function
authorAmelie Delaunay <amelie.delaunay@foss.st.com>
Wed, 7 Jul 2021 08:27:04 +0000 (10:27 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 11 Jul 2021 22:51:41 +0000 (23:51 +0100)
commitd87a5d64b5037cfedd7eb47d785b5c159ace8d9b
tree8563451e9cd1e2dfbd06397b9a14b555b3462534
parent70526e0b7601792bf546044fff92c368112f1d3f
spi: stm32h7: rework rx fifo read function

Remove flush parameter and check RXWNE or RXPLVL when end of transfer
flag is set.

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