提交 468416ef 编写于 作者: A Amelie Delaunay 提交者: Zheng Zengkai

dmaengine: stm32-mdma: fix chan initialization in stm32_mdma_irq_handler()

stable inclusion
from stable-v5.10.121
commit 3cfb546439878e158f11851c601fde6b4b65b12b
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6CQ

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3cfb546439878e158f11851c601fde6b4b65b12b

--------------------------------

[ Upstream commit da3b8ddb ]

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: a4ffb13c ("dmaengine: Add STM32 MDMA driver")
Signed-off-by: NAmelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://lore.kernel.org/r/20220504155322.121431-3-amelie.delaunay@foss.st.comSigned-off-by: NVinod Koul <vkoul@kernel.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 34cd53c5
...@@ -1344,7 +1344,7 @@ static void stm32_mdma_xfer_end(struct stm32_mdma_chan *chan) ...@@ -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) static irqreturn_t stm32_mdma_irq_handler(int irq, void *devid)
{ {
struct stm32_mdma_device *dmadev = devid; struct stm32_mdma_device *dmadev = devid;
struct stm32_mdma_chan *chan = devid; struct stm32_mdma_chan *chan;
u32 reg, id, ccr, ien, status; u32 reg, id, ccr, ien, status;
/* Find out which channel generates the interrupt */ /* Find out which channel generates the interrupt */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册