spi: tegra114: configure dma burst size to fifo trig level
authorSowjanya Komatineni <skomatineni@nvidia.com>
Wed, 27 Mar 2019 05:56:29 +0000 (22:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:46:28 +0000 (14:46 +0100)
commitbd9f7b6a0a4ffe6ff00454085c4f0abef44d221f
tree6a390beff2f07345d253591123a25b2179d60166
parent938f5d5d4802b99fcca2ae846f73e16cd77740ab
spi: tegra114: configure dma burst size to fifo trig level

[ Upstream commit f4ce428c41fb22e3ed55496dded94df44cb920fa ]

Fixes: Configure DMA burst size to be same as SPI TX/RX trigger levels
to avoid mismatch.

SPI FIFO trigger levels are calculated based on the transfer length.
So this patch moves DMA slave configuration to happen before start
of DMAs.

Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-tegra114.c