projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a79e39
)
pxamci: fix dma_unmap_sg length
author
Vernon Sauder
<vernoninhand@gmail.com>
Tue, 30 Dec 2008 00:21:28 +0000
(19:21 -0500)
committer
Pierre Ossman
<drzeus@drzeus.cx>
Wed, 31 Dec 2008 17:57:02 +0000
(18:57 +0100)
dma_unmap_sg should be given the same length as dma_map_sg, not the
value returned from dma_map_sg
Signed-off-by: Vernon Sauder <vsauder@inhand.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/host/pxamci.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/host/pxamci.c
b/drivers/mmc/host/pxamci.c
index f88cc74063541a151107527772378fbb35535010..3c5483b75da47ac9e3b2ed4ef0428d1cbff970aa 100644
(file)
--- a/
drivers/mmc/host/pxamci.c
+++ b/
drivers/mmc/host/pxamci.c
@@
-283,7
+283,7
@@
static int pxamci_data_done(struct pxamci_host *host, unsigned int stat)
return 0;
DCSR(host->dma) = 0;
- dma_unmap_sg(mmc_dev(host->mmc), data->sg,
host->dma
_len,
+ dma_unmap_sg(mmc_dev(host->mmc), data->sg,
data->sg
_len,
host->dma_dir);
if (stat & STAT_READ_TIME_OUT)