MIPS: Add DMA declare coherent memory support

View: New views
1 Messages — Rating Filter:   Alert me  

MIPS: Add DMA declare coherent memory support

by linux-mips main mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Author: Yoichi Yuasa <yoichi_yuasa@...> Thu Jun 4 00:16:04 2009 +0900
Comitter: Ralf Baechle <ralf@...> Wed Nov 4 11:37:48 2009 +0100
Commit: c0cb891bb097fb38f3538277a03506f5ae983598
Gitweb: http://www.linux-mips.org/g/linux/c0cb891b
Branch: master

The ohci-sm501 driver requires dma_declare_coherent_memory().  It is used
by the driver's local memory allocation with dma_alloc_coherent().

Tested on TANBAC TB0287(VR4131 + SM501).

[Ralf: Fixed reject in dma-default.c and removed the entire #if 0'ed block
 in dma-mapping.h instead of just the #if 0.]

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@...>
Signed-off-by: Ralf Baechle <ralf@...>

---

 arch/mips/Kconfig                   |    1 +
 arch/mips/include/asm/dma-mapping.h |   11 +----------
 arch/mips/mm/dma-default.c          |    7 +++++++
 3 files changed, 9 insertions(+), 10 deletions(-)