diff options
| author | Claudiu Beznea <claudiu.beznea@tuxon.dev> | 2026-03-16 15:32:46 +0200 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-03-17 16:11:11 +0530 |
| commit | 89a8567d84bde88cb7cdbbac2ab2299c4f991490 (patch) | |
| tree | 6f3cf78288734789de7791f37719e4448a30e4c6 /include/asm-um/git@git.tavy.me:linux.git | |
| parent | abb863e6213dc41a58ef8bb3289b7e77460dabf3 (diff) | |
dmaengine: sh: rz-dmac: Move CHCTRL updates under spinlock
Both rz_dmac_disable_hw() and rz_dmac_irq_handle_channel() update the
CHCTRL register. To avoid concurrency issues when configuring
functionalities exposed by this registers, take the virtual channel lock.
All other CHCTRL updates were already protected by the same lock.
Previously, rz_dmac_disable_hw() disabled and re-enabled local IRQs, before
accessing CHCTRL registers but this does not ensure race-free access.
Remove the local IRQ disable/enable code as well.
Fixes: 5000d37042a6 ("dmaengine: sh: Add DMAC driver for RZ/G2L SoC")
Cc: stable@vger.kernel.org
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
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-3-claudiu.beznea.uj@bp.renesas.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/asm-um/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
