Skip to content

Commit 241b888

Browse files
net147broonie
authored andcommitted
spi: sun4i: update max transfer size reported
The spi-sun4i driver already has the ability to do large transfers. However, the max transfer size reported is still fifo depth - 1. Update the max transfer size reported to the max value possible. Fixes: 1967379 ("spi: sun4i: Allow transfers larger than FIFO size") Signed-off-by: Jonathan Liu <[email protected]> Acked-by: Maxime Ripard <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 525c9e5 commit 241b888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-sun4i.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static void sun4i_spi_set_cs(struct spi_device *spi, bool enable)
198198

199199
static size_t sun4i_spi_max_transfer_size(struct spi_device *spi)
200200
{
201-
return SUN4I_FIFO_DEPTH - 1;
201+
return SUN4I_MAX_XFER_SIZE - 1;
202202
}
203203

204204
static int sun4i_spi_transfer_one(struct spi_master *master,

0 commit comments

Comments
 (0)