OSDN Git Service

dmaengine: dw-edma: Fix scatter-gather address calculation
authorGustavo Pimentel <Gustavo.Pimentel@synopsys.com>
Thu, 13 Aug 2020 14:14:04 +0000 (16:14 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 25 Aug 2020 11:07:33 +0000 (16:37 +0530)
commit05655541c9503bfd01af4e6cbd7f5a29ac748e6c
treed6b7b85c6f18188d36ad503c04dd61473ae24e64
parent33ebffa105990c43bf336cabe26c77384f59fe70
dmaengine: dw-edma: Fix scatter-gather address calculation

Fix the source and destination physical address calculation of a
peripheral device on scatter-gather implementation.

This issue manifested during tests using a 64 bits architecture system.
The abnormal behavior wasn't visible before due to all previous tests
were done using 32 bits architecture system, that masked his effect.

Fixes: e63d79d1ffcd ("dmaengine: Add Synopsys eDMA IP core driver")
Cc: stable@vger.kernel.org
Signed-off-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Link: https://lore.kernel.org/r/8d3ab7e2ba96563fe3495b32f60077fffb85307d.1597327623.git.gustavo.pimentel@synopsys.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dw-edma/dw-edma-core.c