Skip to content

Commit 455592e

Browse files
ukleineknunojsa
authored andcommitted
spi: stm32: Fix parameters for spi_split_transfers_maxwords()
The patch posted at https://lore.kernel.org/r/20240206200648.1782234-1-dlechner@baylibre.com was based on next-20240207 (and was applied as c0c0293 ("spi: drop gpf arg from __spi_split_transfer_maxsize()") for v6.9-rc1). However when applied to a v6.6 based tree, the conflict with commit f6cd662 ("spi: stm32: add st,stm32mp25-spi compatible supporting STM32MP25 soc") wasn't resolved correctly. Fix that to make the driver build again. Fixes: 98847e6 ("spi: drop gpf arg from __spi_split_transfer_maxsize()") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
1 parent d9dc785 commit 455592e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/spi/spi-stm32.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,8 @@ static int stm32_spi_prepare_msg(struct spi_controller *ctrl,
10111011
if (spi->cfg->set_number_of_data) {
10121012
int ret;
10131013

1014-
ret = spi_split_transfers_maxwords(ctrl, msg, spi->t_size_max);
1014+
ret = spi_split_transfers_maxwords(ctrl, msg,
1015+
STM32H7_SPI_TSIZE_MAX);
10151016
if (ret)
10161017
return ret;
10171018
}

0 commit comments

Comments
 (0)