[Armadeus-commitlog] SF.net SVN: armadeus:[1266] trunk/buildroot/target/device/armadeus/linux/ kern
Brought to you by:
sszy
Revision: 1266
http://armadeus.svn.sourceforge.net/armadeus/?rev=1266&view=rev
Author: artemys
Date: 2009-05-12 07:59:28 +0000 (Tue, 12 May 2009)
Log Message:
-----------
[LINUX] Makes alsa (tsc210x) work again on 2.6.29
Added Paths:
-----------
trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.29/324-armadeus-declare_scatter_gather_support_in_linux_scatterlist_h.patch
Added: trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.29/324-armadeus-declare_scatter_gather_support_in_linux_scatterlist_h.patch
===================================================================
--- trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.29/324-armadeus-declare_scatter_gather_support_in_linux_scatterlist_h.patch (rev 0)
+++ trunk/buildroot/target/device/armadeus/linux/kernel-patches/2.6.29/324-armadeus-declare_scatter_gather_support_in_linux_scatterlist_h.patch 2009-05-12 07:59:28 UTC (rev 1266)
@@ -0,0 +1,28 @@
+
+Dont' know if it's the right way to do it but this patch allows sg_chain() to
+have ARCH_HAS_SG_CHAIN correctly defined (or not) when called.
+Otherwise sg_chain() oopses, even if ARCH_HAS_SG_CHAIN is defined in
+hardware.h. (Wasn't needed for 2.6.27 kernel...)
+
+Signed-off-by: Julien Boibessot <jul...@ar...>
+
+Index: linux-2.6.29/include/linux/scatterlist.h
+===================================================================
+--- linux-2.6.29.orig/include/linux/scatterlist.h 2009-05-11 17:19:30.000000000 +0200
++++ linux-2.6.29/include/linux/scatterlist.h 2009-05-11 17:25:01.000000000 +0200
+@@ -6,6 +6,7 @@
+ #include <linux/mm.h>
+ #include <linux/string.h>
+ #include <asm/io.h>
++#include <mach/hardware.h> /* needed to have ARCH_HAS_SG_CHAIN defined */
+
+ struct sg_table {
+ struct scatterlist *sgl; /* the list */
+@@ -132,6 +133,7 @@
+ struct scatterlist *sgl)
+ {
+ #ifndef ARCH_HAS_SG_CHAIN
++ printk("sg_chain oops !!!!!\n");
+ BUG();
+ #endif
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|