]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
dmaengine: tegra210-adma: fix transfer failure
authorSameer Pujar <spujar@nvidia.com>
Mon, 16 Sep 2019 09:35:13 +0000 (15:05 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 14 Oct 2019 07:10:38 +0000 (12:40 +0530)
commit9ec691f48b5ef741a48af8932ccaec859c67e8f1
treed6852ebe332a20410cbf9637c022a65fda80e201
parent8b6bc5fd71e677864d1a3b896b3069a6e0c5e214
dmaengine: tegra210-adma: fix transfer failure

>From Tegra186 onwards OUTSTANDING_REQUESTS field is added in channel
configuration register(bits 7:4) which defines the maximum number of reads
from the source and writes to the destination that may be outstanding at
any given point of time. This field must be programmed with a value
between 1 and 8. A value of 0 will prevent any transfers from happening.

Thus added 'has_outstanding_reqs' bool member in chip data structure and is
set to false for Tegra210, since the field is not applicable. For Tegra186
it is set to true and channel configuration is updated with maximum
outstanding requests.

Fixes: 433de642a76c ("dmaengine: tegra210-adma: add support for Tegra186/Tegra194")
Cc: stable@vger.kernel.org
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/1568626513-16541-1-git-send-email-spujar@nvidia.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/tegra210-adma.c