]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: dw-axi-dmac: Fix RMW on channel suspend register
authorEmil Renner Berthing <kernel@esmil.dk>
Mon, 27 Jun 2022 09:09:39 +0000 (11:09 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 1 Jul 2022 11:48:26 +0000 (17:18 +0530)
commit7ecdc66bfcb3018a21b55526ee42d1f23ebf16b6
treefc26fb66e03da4226b0326f13a2369ac20e61660
parent939693f469babc6db1489f8124e113788152b638
dmaengine: dw-axi-dmac: Fix RMW on channel suspend register

When the DMA is configured for more than 8 channels the bits controlling
suspend moves to another register. However when adding support for this
the new register would be completely overwritten in one case and
overwritten with values from the old register in another case.

Found by comparing the parallel implementation of more than 8 channel
support for the StarFive JH7100 SoC by Samin.

Fixes: 7fbcaa488a41 ("dmaengine: dw-axi-dmac: support DMAX_NUM_CHANNELS > 8")
Co-developed-by: Samin Guo <samin.guo@starfivetech.com>
Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Link: https://lore.kernel.org/r/20220627090939.1775717-1-emil.renner.berthing@canonical.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c