]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: sprd: Fix the last link-list configuration
authorEric Long <eric.long@spreadtrum.com>
Tue, 6 Nov 2018 05:01:33 +0000 (13:01 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 5 Dec 2018 08:57:11 +0000 (14:27 +0530)
commit5a0c8c0b1cf6c313084fe76b60ad7810ef97860f
treebce9d4a8157e6b529c5859fff7c97b5883d9ddf8
parent40d44beaf228ef864dd253f8a675f89b373b25c0
dmaengine: sprd: Fix the last link-list configuration

We will pass sglen as 0 configure the last link-list configuration
when filling the descriptor, which will cause the incorrect link-list
configuration. Thus we should check if the sglen is 0 to configure
the correct link-list configuration.

Signed-off-by: Eric Long <eric.long@spreadtrum.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sprd-dma.c