summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2020-07-27 09:23:28 +0200
committerMark Brown <broonie@kernel.org>2020-07-27 15:55:21 +0200
commit241b888791ee2fa47b97b3b9dc0e857d241db18d (patch)
treef5fe16f316f3c47b71570f8e2f5fd9d0cef39ae1 /drivers/spi
parentspi: imx: enable runtime pm support (diff)
downloadlinux-241b888791ee2fa47b97b3b9dc0e857d241db18d.tar.xz
linux-241b888791ee2fa47b97b3b9dc0e857d241db18d.zip
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") Signed-off-by: Jonathan Liu <net147@gmail.com> Acked-by: Maxime Ripard <mripard@kernel.org> Link: https://lore.kernel.org/r/20200727072328.510798-1-net147@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-sun4i.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-sun4i.c b/drivers/spi/spi-sun4i.c
index cbfac6596fad..1fdfc6e6691d 100644
--- a/drivers/spi/spi-sun4i.c
+++ b/drivers/spi/spi-sun4i.c
@@ -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,