spi: stm32h7: ensure message are smaller than max size
authorAlain Volmat <alain.volmat@foss.st.com>
Fri, 5 Feb 2021 18:59:28 +0000 (19:59 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 5 Feb 2021 19:16:58 +0000 (19:16 +0000)
commit084de5232820c9e857ccc2282c3d94f33f92a381
tree0c9262efea4ca314048c043318d37b49d51f623e
parent5a380b833ad437123dca91bf900a696709d9b6ab
spi: stm32h7: ensure message are smaller than max size

Ensure that messages given to transfer_one handler can actually be
handled by it. For that purpose rely on the SPI framework
spi_split_transfers_maxsize function to split messages whenever necessary.

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