]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: zynqmp_dma: fix burst length configuration
authorMatthias Fend <matthias.fend@wolfvision.net>
Wed, 15 Jan 2020 10:22:49 +0000 (11:22 +0100)
committerVinod Koul <vkoul@kernel.org>
Tue, 21 Jan 2020 09:19:30 +0000 (14:49 +0530)
commitd114faf7d3d2c1970564c7d9fad8080209f1ac98
treea0a1cd3df6b3fc5280d45cf104a965d0a6fbe7f7
parentb84d021d35463d1cd36c9dc608b37b6c602d3a61
dmaengine: zynqmp_dma: fix burst length configuration

Since the dma engine expects the burst length register content as
power of 2 value, the burst length needs to be converted first.
Additionally add a burst length range check to avoid corrupting unrelated
register bits.

Signed-off-by: Matthias Fend <matthias.fend@wolfvision.net>
Link: https://lore.kernel.org/r/20200115102249.24398-1-matthias.fend@wolfvision.net
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/zynqmp_dma.c