]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
MIPS: lantiq: dma: reset correct number of channel
authorAleksander Jan Bajkowski <olek2@wp.pl>
Tue, 14 Sep 2021 21:20:59 +0000 (23:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 10:36:04 +0000 (11:36 +0100)
commit1874eb640a68c2d1d62a7369f457ef6bd9f2dbd1
tree545026da32bf84893d748e121469e6b6811da970
parent9b872fdecc2d0ae42638062e68e406e3b25090a6
MIPS: lantiq: dma: reset correct number of channel

[ Upstream commit 5ca9ce2ba4d5884cd94d1a856c675ab1242cd242 ]

Different SoCs have a different number of channels, e.g .:
* amazon-se has 10 channels,
* danube+ar9 have 20 channels,
* vr9 has 28 channels,
* ar10 has 24 channels.

We can read the ID register and, depending on the reported
number of channels, reset the appropriate number of channels.

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/lantiq/xway/dma.c