OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fe5f2c
)
[MIPS] Make dma_map_sg handle sg elements which are longer than one page
author
Thomas Bogendoerfer
<tsbogend@alpha.franken.de>
Fri, 18 May 2007 12:32:36 +0000
(14:32 +0200)
committer
Ralf Baechle
<ralf@linux-mips.org>
Wed, 6 Jun 2007 18:34:32 +0000
(19:34 +0100)
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/dma-default.c
patch
|
blob
|
history
diff --git
a/arch/mips/mm/dma-default.c
b/arch/mips/mm/dma-default.c
index
f0eb299
..
76903c7
100644
(file)
--- a/
arch/mips/mm/dma-default.c
+++ b/
arch/mips/mm/dma-default.c
@@
-168,8
+168,9
@@
int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
addr = (unsigned long) page_address(sg->page);
if (!plat_device_is_coherent(dev) && addr)
__dma_sync(addr + sg->offset, sg->length, direction);
- sg->dma_address = plat_map_dma_mem_page(dev, sg->page) +
- sg->offset;
+ sg->dma_address = plat_map_dma_mem(dev,
+ (void *)(addr + sg->offset),
+ sg->length);
}
return nents;