projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33b5d6a
)
dmaengine: stm32-mdma: fix chan initialization in stm32_mdma_irq_handler()
author
Amelie Delaunay
<amelie.delaunay@foss.st.com>
Wed, 4 May 2022 15:53:21 +0000
(17:53 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:23:15 +0000
(10:23 +0200)
[ Upstream commit
da3b8ddb464bd49b6248d00ca888ad751c9e44fd
]
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:
a4ffb13c8946
("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>
drivers/dma/stm32-mdma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/stm32-mdma.c
b/drivers/dma/stm32-mdma.c
index
343afb9
..
21a7bdc
100644
(file)
--- a/
drivers/dma/stm32-mdma.c
+++ b/
drivers/dma/stm32-mdma.c
@@
-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 */