]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 17:47:19 +0000 (18:47 +0100)
commite7f0f4a2c280406500db3028ef6b1d354dfc0d90
treeccd628b01f70a9b19e798a0833c50ae3ce33c17d
parent75b2351e849f5866422b37f2a2180153280f1f3f
dmaengine: tegra210-adma: fix transfer failure

BugLink: https://bugs.launchpad.net/bugs/1851550
commit 9ec691f48b5ef741a48af8932ccaec859c67e8f1 upstream.

>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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/dma/tegra210-adma.c