]> asedeno.scripts.mit.edu Git - linux.git/commit
dmaengine: tegra210-adma: Fix channel FIFO configuration
authorJon Hunter <jonathanh@nvidia.com>
Thu, 16 May 2019 15:53:53 +0000 (16:53 +0100)
committerVinod Koul <vkoul@kernel.org>
Tue, 21 May 2019 08:56:00 +0000 (14:26 +0530)
commit9ab59bf5dd6380a56e2897c92c5cd920ae4b0f8b
treea56b8a30778db3f6ffc509e4b331cbd1c917792b
parentb53611fb1ce9b1786bd18205473e0c1d6bfa8934
dmaengine: tegra210-adma: Fix channel FIFO configuration

Commit ded1f3db4cd6 ("dmaengine: tegra210-adma: prepare for supporting
newer Tegra chips") removed the default settings DMA channel RX and TX
FIFO sizes and this is breaking DMA transfers. The intention was to
move the default settings to the chip specific data structure because
this commit was preparing for adding support for Tegra186 where the
fields for the FIFO CTRL register are slightly different.

Fix the configuration of the FIFO sizes by adding default values for
the FIFO CTRL register for both Tegra210 and Tegra186 and store the
values in the chip specific structure.

Fixes: ded1f3db4cd6 ("dmaengine: tegra210-adma: prepare for supporting newer Tegra chips")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/tegra210-adma.c