]> asedeno.scripts.mit.edu Git - linux.git/commit
spi: sun6i: Allow transfers larger than FIFO size
authorIcenowy Zheng <icenowy@aosc.xyz>
Mon, 6 Mar 2017 12:14:43 +0000 (20:14 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 7 Mar 2017 12:10:39 +0000 (13:10 +0100)
commit913f536c6c18a2e19e32f06971101c1d0ae3739c
treef19995a3535e73416a98391c1568149a2ec60c8f
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
spi: sun6i: Allow transfers larger than FIFO size

The spi-sun6i driver have the same problem that spi-sun4i used to have
-- SPI transfers are limited to one FIFO depth.

This commit fixes this problem in the same way it's fixed in spi-sun4i.
See commit 196737912da5 ("spi: sun4i: Allow transfers larger than FIFO size")
for more information.

The sun6i SPI controllers features changeable interrupt trigger level, but I
set it to 3/4 of fifo depth, as same as the the sun4i SPI controllers.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sun6i.c