Skip to contentSkip to conversation

spi: sun4i: update max transfer size reported

PATCH In review Jonathan Liu 3 participants 3 messages Jul 27, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 196737912da5 ("spi: sun4i: Allow transfers larger than FIFO size")
---
 drivers/spi/spi-sun4i.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-sun4i.c +1 -1
index cbfac6596fad..1fdfc6e6691d 100644
@@ -198,7 +198,7 @@ static void sun4i_spi_set_cs(struct spi_device *spi, bool enable)
 
 static size_t sun4i_spi_max_transfer_size(struct spi_device *spi)
 {
-	return SUN4I_FIFO_DEPTH - 1;
+	return SUN4I_MAX_XFER_SIZE - 1;
 }
 
 static int sun4i_spi_transfer_one(struct spi_master *master,
Signature · 1 line
2.27.0
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Jonathan Liu

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 196737912da5 ("spi: sun4i: Allow transfers larger than FIFO size")

Thanks!
Maxime

maintainer
#2 lore raw
In reply to Jonathan Liu
Quoted 4 lines · Jonathan Liu

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.

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/1] spi: sun4i: update max transfer size reported

      commit: 241b888791ee2fa47b97b3b9dc0e857d241db18d

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark