]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit6dd6ab1730c762f7ae7eea548c1694e266ce34a2
tree735955685384debf19e8f90e69c3e4aa3ea21289
parentf35149cc9a8f8a51d41ba3d23bf205dacad4a3d6
spi: tegra114: configure dma burst size to fifo trig level

BugLink: https://bugs.launchpad.net/bugs/1863019
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/spi/spi-tegra114.c