dmaengine: at_xdmac: Remove a level of indentation in at_xdmac_tasklet()
authorTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 15 Dec 2021 11:01:14 +0000 (13:01 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 5 Jan 2022 10:20:04 +0000 (15:50 +0530)
commita61210cae80cac0701d5aca9551466a389717fd2
tree03d7539f5444b57ae60bcecea8be34f44508e7d4
parent912f7c6f7fac273f40e621447cf17d14b50d6e5b
dmaengine: at_xdmac: Remove a level of indentation in at_xdmac_tasklet()

Apart of making the code easier to read, this patch is a prerequisite for
a functional change: tasklets run with interrupts enabled, so we need to
protect atchan->irq_status with spin_lock_irq() otherwise the tasklet can
be interrupted by the IRQ that modifies irq_status. atchan->irq_status
will be protected in a further patch.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20211215110115.191749-12-tudor.ambarus@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/at_xdmac.c