]> git.baikalelectronics.ru Git - kernel.git/commit
spi: rockchip: adjust dma watermark and burstlen
authorHuibin Hong <huibin.hong@rock-chips.com>
Wed, 10 Oct 2018 09:00:33 +0000 (11:00 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 11 Oct 2018 14:14:37 +0000 (15:14 +0100)
commitb7862c30bfd8624d5b1f17ff9c61a6dc87f9235f
tree8d319d40fe8cf3835e3ae40f3a93f1be32b82093
parent40ed0de9fa800ff070e4d9b27ba41d9fc6b9bc88
spi: rockchip: adjust dma watermark and burstlen

Signal tx dma when spi fifo is less than half full,
and limit tx bursts to half the fifo length.

Clamp rx burst length to 1 to avoid alignment issues.

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c