[kernel] r16705 - in dists/trunk/linux-2.6/debian: . patches/bugfix/mips patches/series
Ben Hutchings
benh at alioth.debian.org
Sun Dec 12 14:55:18 UTC 2010
Author: benh
Date: Sun Dec 12 14:55:10 2010
New Revision: 16705
Log:
[mips] Restore dma_cache_sync()
Added:
dists/trunk/linux-2.6/debian/patches/bugfix/mips/mips-Restore-dma_cache_sync.patch
dists/trunk/linux-2.6/debian/patches/series/1~experimental.4
Modified:
dists/trunk/linux-2.6/debian/changelog
Modified: dists/trunk/linux-2.6/debian/changelog
==============================================================================
--- dists/trunk/linux-2.6/debian/changelog Sun Dec 12 11:13:20 2010 (r16704)
+++ dists/trunk/linux-2.6/debian/changelog Sun Dec 12 14:55:10 2010 (r16705)
@@ -6,6 +6,7 @@
* [powerpc,x86] Enable PATA_PCMCIA (Closes: #606324)
* Disable BLK_DEV_IDECS
* [alpha] Use libata-based drivers for most PATA controllers
+ * [mips] Restore dma_cache_sync() (fix yet another FTBFS)
-- Ben Hutchings <ben at decadent.org.uk> Sat, 11 Dec 2010 21:21:10 +0000
Added: dists/trunk/linux-2.6/debian/patches/bugfix/mips/mips-Restore-dma_cache_sync.patch
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ dists/trunk/linux-2.6/debian/patches/bugfix/mips/mips-Restore-dma_cache_sync.patch Sun Dec 12 14:55:10 2010 (r16705)
@@ -0,0 +1,42 @@
+From 3b4987bd33af91dd55325da395c236645b0aed16 Mon Sep 17 00:00:00 2001
+From: Ben Hutchings <ben at decadent.org.uk>
+Date: Sun, 12 Dec 2010 14:48:56 +0000
+Subject: [PATCH] mips: Restore dma_cache_sync()
+
+Commit 48e1fd5a81416a037f5a48120bf281102f2584e2 "MIPS: Convert DMA to
+use dma-mapping-common.h" renamed and un-exported this function.
+Since dma-mapping-common.h does not implement dma_cache_sync(), this
+was incorrect.
+
+Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
+---
+ arch/mips/mm/dma-default.c | 6 ++++--
+ 1 files changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c
+index 4fc1a0f..71d60c4 100644
+--- a/arch/mips/mm/dma-default.c
++++ b/arch/mips/mm/dma-default.c
+@@ -288,8 +288,8 @@ int mips_dma_supported(struct device *dev, u64 mask)
+ return plat_dma_supported(dev, mask);
+ }
+
+-void mips_dma_cache_sync(struct device *dev, void *vaddr, size_t size,
+- enum dma_data_direction direction)
++void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
++ enum dma_data_direction direction)
+ {
+ BUG_ON(direction == DMA_NONE);
+
+@@ -298,6 +298,8 @@ void mips_dma_cache_sync(struct device *dev, void *vaddr, size_t size,
+ __dma_sync((unsigned long)vaddr, size, direction);
+ }
+
++EXPORT_SYMBOL(dma_cache_sync);
++
+ static struct dma_map_ops mips_default_dma_map_ops = {
+ .alloc_coherent = mips_dma_alloc_coherent,
+ .free_coherent = mips_dma_free_coherent,
+--
+1.7.2.3
+
Added: dists/trunk/linux-2.6/debian/patches/series/1~experimental.4
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ dists/trunk/linux-2.6/debian/patches/series/1~experimental.4 Sun Dec 12 14:55:10 2010 (r16705)
@@ -0,0 +1 @@
++ bugfix/mips/mips-Restore-dma_cache_sync.patch
More information about the Kernel-svn-changes
mailing list