dmaengine: pl330: fix wrong usage of spinlock flags in dma_cyclc
authorBumyong Lee <bumyong.lee@samsung.com>
Fri, 7 May 2021 06:36:47 +0000 (15:36 +0900)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:49:17 +0000 (08:49 -0400)
commitf87e5a933543bc3c0c47d3015f95f0b06a4cf93f
treebe7f13e537abdad30cfe8a371c62bc0309cb4c48
parent2f0969c0be3ef16e9de84f536761917d88e7f85f
dmaengine: pl330: fix wrong usage of spinlock flags in dma_cyclc

commit 4ad5dd2d7876d79507a20f026507d1a93b8fff10 upstream.

flags varible which is the input parameter of pl330_prep_dma_cyclic()
should not be used by spinlock_irq[save/restore] function.

Signed-off-by: Jongho Park <jongho7.park@samsung.com>
Signed-off-by: Bumyong Lee <bumyong.lee@samsung.com>
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Link: https://lore.kernel.org/r/20210507063647.111209-1-chanho61.park@samsung.com
Fixes: f6f2421c0a1c ("dmaengine: pl330: Merge dma_pl330_dmac and pl330_dmac structs")
Cc: stable@vger.kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/pl330.c