]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Sep 2021 10:02:01 +0000 (11:02 +0100)
commit5ca9ce2ba4d5884cd94d1a856c675ab1242cd242
treec38495d123de5f8091df4dc57eac9a2a2b3ced4e
parentc12aa581f6d5e80c3c3675ab26a52c2b3b62f76e
MIPS: lantiq: dma: reset correct number of channel

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>
arch/mips/lantiq/xway/dma.c