Skip to content

Commit

Permalink
dmaengine: stm32-mdma: fix chan initialization in stm32_mdma_irq_hand…
Browse files Browse the repository at this point in the history
…ler()

[ Upstream commit da3b8dd ]

The parameter to pass back to the handler function when irq has been
requested is a struct stm32_mdma_device pointer, not a struct
stm32_mdma_chan pointer.
Even if chan is reinit later in the function, remove this wrong
initialization.

Fixes: a4ffb13 ("dmaengine: Add STM32 MDMA driver")
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://lore.kernel.org/r/20220504155322.121431-3-amelie.delaunay@foss.st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
ADESTM authored and gregkh committed Jun 9, 2022
1 parent 13d8d11 commit 3cfb546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/stm32-mdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ static void stm32_mdma_xfer_end(struct stm32_mdma_chan *chan)
static irqreturn_t stm32_mdma_irq_handler(int irq, void *devid)
{
struct stm32_mdma_device *dmadev = devid;
struct stm32_mdma_chan *chan = devid;
struct stm32_mdma_chan *chan;
u32 reg, id, ccr, ien, status;

/* Find out which channel generates the interrupt */
Expand Down

0 comments on commit 3cfb546

Please sign in to comment.