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:40:08 2009 +0100
Commit: 565ca06e6d21de313d9610e727c141ab9a35a086
Gitweb: http://www.linux-mips.org/g/linux/565ca06e
Branch: linux-2.6.30-stable

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@...>
(cherry picked from commit c0cb891bb097fb38f3538277a03506f5ae983598)

---

 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(-)