summaryrefslogtreecommitdiff
path: root/drivers/dma
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2020-02-09 19:33:56 +0300
committerVinod Koul <vkoul@kernel.org>2020-02-25 11:57:34 +0530
commit01b66a7521274c1f208010db49af2a3d8e274400 (patch)
tree21644af92c44930155ae2fb3641a1c45142e8b80 /drivers/dma
parentf261f1cd91efe36e932996efddaa7efffbb62831 (diff)
downloadlwn-01b66a7521274c1f208010db49af2a3d8e274400.tar.gz
lwn-01b66a7521274c1f208010db49af2a3d8e274400.zip
dmaengine: tegra-apb: Improve error message about DMA underflow
Technically it is possible that DMA could be misconfigured in a way that cyclic DMA transfer is processed slower than it takes to complete the cycle and in this case the DMA is getting aborted with a not very informative message about the problem, let's improve it. Suggested-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Acked-by: Jon Hunter <jonathanh@nvidia.com> Link: https://lore.kernel.org/r/20200209163356.6439-20-digetx@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/tegra20-apb-dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c
index 3265eb8e5d91..f1ff836abeaf 100644
--- a/drivers/dma/tegra20-apb-dma.c
+++ b/drivers/dma/tegra20-apb-dma.c
@@ -566,7 +566,7 @@ static bool handle_continuous_head_request(struct tegra_dma_channel *tdc,
if (!hsgreq->configured) {
tegra_dma_stop(tdc);
pm_runtime_put(tdc->tdma->dev);
- dev_err(tdc2dev(tdc), "Error in DMA transfer, aborting DMA\n");
+ dev_err(tdc2dev(tdc), "DMA transfer underflow, aborting DMA\n");
tegra_dma_abort_all(tdc);
return false;
}