Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dmaengine: sh: rz-dmac: Drop unnecessary local_irq_save() call

rz_dmac_enable_hw() calls local_irq_save()/local_irq_restore(), but
this is not needed because the callers of rz_dmac_enable_hw() already
protect the critical section using
spin_lock_irqsave()/spin_lock_irqrestore().

Remove the local_irq_save()/local_irq_restore() calls.

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20260316133252.240348-6-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Claudiu Beznea and committed by
Vinod Koul
be25945d 7badd294

-5
-5
drivers/dma/sh/rz-dmac.c
··· 272 272 { 273 273 struct dma_chan *chan = &channel->vc.chan; 274 274 struct rz_dmac *dmac = to_rz_dmac(chan->device); 275 - unsigned long flags; 276 275 u32 nxla; 277 276 u32 chctrl; 278 277 u32 chstat; 279 278 280 279 dev_dbg(dmac->dev, "%s channel %d\n", __func__, channel->index); 281 - 282 - local_irq_save(flags); 283 280 284 281 rz_dmac_lmdesc_recycle(channel); 285 282 ··· 292 295 rz_dmac_ch_writel(channel, CHCTRL_SWRST, CHCTRL, 1); 293 296 rz_dmac_ch_writel(channel, chctrl, CHCTRL, 1); 294 297 } 295 - 296 - local_irq_restore(flags); 297 298 } 298 299 299 300 static void rz_dmac_disable_hw(struct rz_dmac_chan *channel)