dmaengine: zynqmp_dma: fix burst length configuration
authorMatthias Fend <matthias.fend@wolfvision.net>
Wed, 15 Jan 2020 10:22:49 +0000 (11:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 18:40:05 +0000 (20:40 +0200)
commitbeb1ae24538477c64e12f361c2abb002a067b6b5
tree461d43851367efdc1ad2565d9e477fe043c3eb12
parent0516e42c7b0263721cee45429ac97eed6aff603c
dmaengine: zynqmp_dma: fix burst length configuration

[ Upstream commit cc88525ebffc757e00cc5a5d61da6271646c7f5f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/xilinx/zynqmp_dma.c