Commit 2f23355e authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Vinod Koul

dmaengine: dw-axi-dmac: Simplify assignment in dma_chan_pause()

Simplify assigning zero and performing a logical OR to a single
assignment.
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/2abd0da35608c14689a919d47dd45898a8ab4297.1635263478.git.geert@linux-m68k.orgSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 9502ffcd
...@@ -1164,9 +1164,8 @@ static int dma_chan_pause(struct dma_chan *dchan) ...@@ -1164,9 +1164,8 @@ static int dma_chan_pause(struct dma_chan *dchan)
BIT(chan->id) << DMAC_CHAN_SUSP_WE_SHIFT; BIT(chan->id) << DMAC_CHAN_SUSP_WE_SHIFT;
axi_dma_iowrite32(chan->chip, DMAC_CHEN, val); axi_dma_iowrite32(chan->chip, DMAC_CHEN, val);
} else { } else {
val = 0; val = BIT(chan->id) << DMAC_CHAN_SUSP2_SHIFT |
val |= BIT(chan->id) << DMAC_CHAN_SUSP2_SHIFT | BIT(chan->id) << DMAC_CHAN_SUSP2_WE_SHIFT;
BIT(chan->id) << DMAC_CHAN_SUSP2_WE_SHIFT;
axi_dma_iowrite32(chan->chip, DMAC_CHSUSPREG, val); axi_dma_iowrite32(chan->chip, DMAC_CHSUSPREG, val);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment