]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmaengine: qcom: gpi: clean up the IRQ disable/enable in gpi_reset_chan()
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 9 May 2024 11:02:11 +0000 (14:02 +0300)
committerVinod Koul <vkoul@kernel.org>
Tue, 11 Jun 2024 18:25:34 +0000 (23:55 +0530)
commitf8f530ba429a334fe1a28714787f8a98e90777ec
tree9ded3f90d9c475f31455dca6f00db079d108ba6f
parent8ddad558997002ce67980e30c9e8dfaa696e163b
dmaengine: qcom: gpi: clean up the IRQ disable/enable in gpi_reset_chan()

The calls write_lock/unlock_irq() disables and re-enables the IRQs.
Calling spin_lock_irqsave() and spin_lock_restore() when the IRQs are
already disabled doesn't do anything and just makes the code confusing.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/8be473eb-65e0-42b4-b574-e61c3a7f62d8@moroto.mountain
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/qcom/gpi.c