spi: bcm2835: implement ctlr->max_transfer_size
authorDavid Lechner <dlechner@baylibre.com>
Fri, 26 Jan 2024 22:00:23 +0000 (16:00 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 5 Feb 2024 14:35:44 +0000 (14:35 +0000)
commit2733092baa3e8a1f05fd16088808be17c98990b4
treeb17ec3ea00c6fd04015aad2f9fcefc7f7283e734
parentc8bec3355f08ddb887d5c13b7095dfa79e6db108
spi: bcm2835: implement ctlr->max_transfer_size

The core SPI code will handle splitting transfers if needed as long
as ctlr->max_transfer_size is implemented. It does this in
__spi_pump_transfer_message() immediately before calling
ctlr->prepare_message. So effectively, this change does not
alter the behavior of the driver.

Also, several peripheral drivers make use of spi_max_transfer_size(),
so this should improve compatibility with those drivers.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20240126220024.3926403-2-dlechner@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-bcm2835.c