]> git.baikalelectronics.ru Git - 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)
commitb6ef7f588b3b03d83d55625296615c098f4472a0
treed6852ebe332a20410cbf9637c022a65fda80e201
parentadd83d5a428bae0e7340b8a372d061fa2bc25ab7
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: 272e4f6c7ec1 ("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