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:50:36 +0000 (14:50 +0100)
commit0d244fd367ce2616c641e8700131174cb802ae25
tree31fef10e53e4a1fa2050632c49320ad790ac748d
parent262a7b662f3a2c14ab493cfb8ef792c63e2e6d9c
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