projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07d4057
)
mmc: bcm2835: Release DMA channel on driver unload
author
Stefan Wahren
<stefan.wahren@i2se.com>
Sun, 11 Nov 2018 20:23:55 +0000
(21:23 +0100)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000
(08:26 +0100)
We need to release the slave DMA channel during driver unload.
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/bcm2835.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/bcm2835.c
b/drivers/mmc/host/bcm2835.c
index
096e737
..
0711e25
100644
(file)
--- a/
drivers/mmc/host/bcm2835.c
+++ b/
drivers/mmc/host/bcm2835.c
@@
-1446,6
+1446,9
@@
static int bcm2835_remove(struct platform_device *pdev)
cancel_work_sync(&host->dma_work);
cancel_delayed_work_sync(&host->timeout_work);
+ if (host->dma_chan_rxtx)
+ dma_release_channel(host->dma_chan_rxtx);
+
mmc_free_host(host->mmc);
platform_set_drvdata(pdev, NULL);