summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMahesh Mahadevan <mahesh.mahadevan@freescale.com>2012-09-05 13:47:18 -0500
committerOtavio Salvador <otavio@ossystems.com.br>2012-09-05 16:15:31 -0300
commit66b66176f5de4894aceb8c7c41662519ca16b9d8 (patch)
tree891cfffa4f389aa35f2bd41ab6c48ffb8745b940
parentad518750430d188e91a003b04728898dc5fcb281 (diff)
downloadmeta-fsl-arm-66b66176f5de4894aceb8c7c41662519ca16b9d8.tar.gz
linux-imx (2.6.35.3): Kernel patches from Freescale GIT
The Freescale external GIT repository has been updated, below are the links: http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/log/?h=imx_2.6.35_11.09.01 http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/log/?h=imx_2.6.35_10.12.01 Delete the patches locally applied as they are available on the GIT server. Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@freescale.com>
-rw-r--r--recipes-kernel/linux/linux-imx-2.6.35.3/0002-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch58
-rw-r--r--recipes-kernel/linux/linux-imx-2.6.35.3/smsc95xx-randomize-mac-once.patch51
-rw-r--r--recipes-kernel/linux/linux-imx-2.6.35.3/w1-fix-support-multiple-master.patch79
-rw-r--r--recipes-kernel/linux/linux-imx-2.6.35.3/wire-up-sys_accept4-on-ARM.patch53
-rw-r--r--recipes-kernel/linux/linux-imx_2.6.35.3.bb12
5 files changed, 4 insertions, 249 deletions
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/0002-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch b/recipes-kernel/linux/linux-imx-2.6.35.3/0002-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch
deleted file mode 100644
index 55ec975..0000000
--- a/recipes-kernel/linux/linux-imx-2.6.35.3/0002-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch
+++ /dev/null
@@ -1,58 +0,0 @@
1From 64bc6f1bfac43096d0102be252392f31405273ec Mon Sep 17 00:00:00 2001
2From: Greg KH <gregkh@suse.de>
3Date: Thu, 5 Aug 2010 13:53:35 -0700
4Subject: [PATCH 2/2] cgroupfs: create /sys/fs/cgroup to mount cgroupfs on
5
6We really shouldn't be asking userspace to create new root filesystems.
7So follow along with all of the other in-kernel filesystems, and provide
8a mount point in sysfs.
9
10For cgroupfs, this should be in /sys/fs/cgroup/ This change provides
11that mount point when the cgroup filesystem is registered in the kernel.
12
13Acked-by: Paul Menage <menage@google.com>
14Acked-by: Dhaval Giani <dhaval.giani@gmail.com>
15Cc: Li Zefan <lizf@cn.fujitsu.com>
16Cc: Lennart Poettering <lennart@poettering.net>
17Cc: Kay Sievers <kay.sievers@vrfy.org>
18Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
19---
20 kernel/cgroup.c | 13 ++++++++++++-
21 1 files changed, 12 insertions(+), 1 deletions(-)
22
23diff --git a/kernel/cgroup.c b/kernel/cgroup.c
24index 7a14a97..cd81c18 100644
25--- a/kernel/cgroup.c
26+++ b/kernel/cgroup.c
27@@ -1621,6 +1621,8 @@ static struct file_system_type cgroup_fs_type = {
28 .kill_sb = cgroup_kill_sb,
29 };
30
31+static struct kobject *cgroup_kobj;
32+
33 static inline struct cgroup *__d_cgrp(struct dentry *dentry)
34 {
35 return dentry->d_fsdata;
36@@ -3885,9 +3887,18 @@ int __init cgroup_init(void)
37 hhead = css_set_hash(init_css_set.subsys);
38 hlist_add_head(&init_css_set.hlist, hhead);
39 BUG_ON(!init_root_id(&rootnode));
40+
41+ cgroup_kobj = kobject_create_and_add("cgroup", fs_kobj);
42+ if (!cgroup_kobj) {
43+ err = -ENOMEM;
44+ goto out;
45+ }
46+
47 err = register_filesystem(&cgroup_fs_type);
48- if (err < 0)
49+ if (err < 0) {
50+ kobject_put(cgroup_kobj);
51 goto out;
52+ }
53
54 proc_create("cgroups", 0, NULL, &proc_cgroupstats_operations);
55
56--
571.6.6.1
58
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/smsc95xx-randomize-mac-once.patch b/recipes-kernel/linux/linux-imx-2.6.35.3/smsc95xx-randomize-mac-once.patch
deleted file mode 100644
index 18a5a7e..0000000
--- a/recipes-kernel/linux/linux-imx-2.6.35.3/smsc95xx-randomize-mac-once.patch
+++ /dev/null
@@ -1,51 +0,0 @@
1smsc95xx: generate random MAC address once, not every ifup
2
3The smsc95xx driver currently generates a new random MAC address
4every time the interface is brought up. This makes it impossible to
5override using the standard `ifconfig hw ether` approach.
6
7Past patches tried to make the MAC address a module parameter or
8base it off the die ID, but it seems to me much simpler (and
9hopefully less controversial) to stick with the current random
10generation scheme, but allow the user to change the address.
11
12This patch does exactly that - it moves the random address
13generation from smsc95xx_reset() into smsc95xx_bind(), so that it is
14done once on module load, not on every ifup. The user can then
15override this using the standard mechanisms.
16
17Applies against 2.6.35 and linux-2.6 head.
18
19Upstream-Status: Backport [2.6.36]
20
21Signed-off-by: Bernard Blackham <b-omap@largestprime.net>
22Signed-off-by: David S. Miller <davem@davemloft.net>
23---
24 drivers/net/usb/smsc95xx.c | 4 ++--
25 1 files changed, 2 insertions(+), 2 deletions(-)
26
27diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
28index 12a3c88..65cb1ab 100644
29--- a/drivers/net/usb/smsc95xx.c
30+++ b/drivers/net/usb/smsc95xx.c
31@@ -805,8 +805,6 @@ static int smsc95xx_reset(struct usbnet *dev)
32 return ret;
33 }
34
35- smsc95xx_init_mac_address(dev);
36-
37 ret = smsc95xx_set_mac_address(dev);
38 if (ret < 0)
39 return ret;
40@@ -1047,6 +1045,8 @@ static int smsc95xx_bind(struct usbnet *dev, struct usb_interface *intf)
41 pdata->use_tx_csum = DEFAULT_TX_CSUM_ENABLE;
42 pdata->use_rx_csum = DEFAULT_RX_CSUM_ENABLE;
43
44+ smsc95xx_init_mac_address(dev);
45+
46 /* Init all registers */
47 ret = smsc95xx_reset(dev);
48
49--
501.7.7.6
51
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/w1-fix-support-multiple-master.patch b/recipes-kernel/linux/linux-imx-2.6.35.3/w1-fix-support-multiple-master.patch
deleted file mode 100644
index 9ed730b..0000000
--- a/recipes-kernel/linux/linux-imx-2.6.35.3/w1-fix-support-multiple-master.patch
+++ /dev/null
@@ -1,79 +0,0 @@
1drivers/w1/w1_int.c: multiple masters used same init_name
2
3When using multiple masters, w1_int.c would use the .init_name from w1.c
4for all entities, which will fail when creating a corresponding sysfs
5entry. This patch uses the unique name previously generated.
6
7 WARNING: at fs/sysfs/dir.c:451 sysfs_add_one+0x48/0x64()
8 sysfs: cannot create duplicate filename '/devices/w1 bus master'
9 Modules linked in:
10 Call trace:
11 [<9001a604>] warn_slowpath_common+0x34/0x44
12 [<9001a64c>] warn_slowpath_fmt+0x14/0x18
13 [<90078020>] sysfs_add_one+0x48/0x64
14 [<900784ec>] create_dir+0x40/0x68
15 [<9007857a>] sysfs_create_dir+0x66/0x78
16 [<900c1a8a>] kobject_add_internal+0x6e/0x104
17 [<900c1bc0>] kobject_add_varg+0x20/0x2c
18 [<900c1c1c>] kobject_add+0x30/0x3c
19 [<900dbd66>] device_add+0x6a/0x378
20 [<900dbb4a>] device_initialize+0x12/0x48
21 [<900dc080>] device_register+0xc/0x10
22 [<900f99be>] w1_add_master_device+0x162/0x274
23 [<90008e7a>] w1_gpio_probe+0x66/0xb4
24 [<9000030c>] kernel_init+0x0/0xe8
25 [<900dde54>] platform_drv_probe+0xc/0xe
26 [<9000030c>] kernel_init+0x0/0xe8
27 [<900dd4f8>] driver_probe_device+0x6c/0xdc
28 [<900dd5fc>] __driver_attach+0x34/0x48
29 [<900dcce8>] bus_for_each_dev+0x2c/0x48
30 [<900dd5c8>] __driver_attach+0x0/0x48
31 [<900dd38c>] driver_attach+0x10/0x14
32 [<900dd16a>] bus_add_driver+0x6a/0x18c
33 [<900dd768>] driver_register+0x60/0xb8
34 [<90011594>] __initcall_w1_therm_init6+0x0/0x4
35 [<90008e00>] w1_gpio_init+0x0/0x14
36 [<9000030c>] kernel_init+0x0/0xe8
37 [<900ddf48>] platform_driver_register+0x30/0x38
38 [<90011594>] __initcall_w1_therm_init6+0x0/0x4
39 [<90008e00>] w1_gpio_init+0x0/0x14
40 [<9000030c>] kernel_init+0x0/0xe8
41 [<900ddf5e>] platform_driver_probe+0xe/0x3c
42 [<90008e0c>] w1_gpio_init+0xc/0x14
43 [<90011594>] __initcall_w1_therm_init6+0x0/0x4
44 [<90008e00>] w1_gpio_init+0x0/0x14
45 [<900126d4>] do_one_initcall+0x34/0x130
46 [<90000372>] kernel_init+0x66/0xe8
47 [<90011594>] __initcall_w1_therm_init6+0x0/0x4
48 [<9001ca3e>] do_exit+0x0/0x3a6
49 [<9000030c>] kernel_init+0x0/0xe8
50 [<9001ca3e>] do_exit+0x0/0x3a6
51
52 ---[ end trace 5a9233884fead918 ]---
53 kobject_add_internal failed for w1 bus master with -EEXIST, don't try to register things with the same name in the same directory.
54
55Upstream-Status: Backport [3.2]
56
57Signed-off-by: Florian Faber <faber@faberman.de>
58Cc: Evgeniy Polyakov <zbr@ioremap.net>
59Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
60Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
61---
62 drivers/w1/w1_int.c | 1 +
63 1 file changed, 1 insertion(+)
64
65diff --git a/drivers/w1/w1_int.c b/drivers/w1/w1_int.c
66index d220bce..f79e62e 100644
67--- a/drivers/w1/w1_int.c
68+++ b/drivers/w1/w1_int.c
69@@ -78,6 +78,7 @@ static struct w1_master * w1_alloc_dev(u32 id, int slave_count, int slave_ttl,
70 memcpy(&dev->dev, device, sizeof(struct device));
71 dev_set_name(&dev->dev, "w1_bus_master%u", dev->id);
72 snprintf(dev->name, sizeof(dev->name), "w1_bus_master%u", dev->id);
73+ dev->dev.init_name = dev->name;
74
75 dev->driver = driver;
76
77--
781.7.10
79
diff --git a/recipes-kernel/linux/linux-imx-2.6.35.3/wire-up-sys_accept4-on-ARM.patch b/recipes-kernel/linux/linux-imx-2.6.35.3/wire-up-sys_accept4-on-ARM.patch
deleted file mode 100644
index 7182e80..0000000
--- a/recipes-kernel/linux/linux-imx-2.6.35.3/wire-up-sys_accept4-on-ARM.patch
+++ /dev/null
@@ -1,53 +0,0 @@
1From 1415ec63689ef39bcb24b5095941ec4cc884035c Mon Sep 17 00:00:00 2001
2From: Mikael Pettersson <mikpe@it.uu.se>
3Date: Sun, 15 Aug 2010 10:47:23 +0100
4Subject: [PATCH 1/2] ARM: 6329/1: wire up sys_accept4() on ARM
5
6sys_accept4() was added in kernel 2.6.28, but ARM was not updated
7to include it. The number and types of parameters is such that
8no ARM-specific processing is needed, so wiring up sys_accept4()
9just requires defining __NR_accept4 and adding a direct call in
10the syscall entry table.
11
12Tested with an EABI 2.6.35 kernel and Ulrich Drepper's original
13accept4() test program, modified to define __NR_accept4 for ARM.
14
15Using the updated unistd.h also eliminates a warning then building
16glibc (2.10.2 and newer) about accept4() being unimplemented.
17
18Upstream-Status: Backport [2.6.36]
19
20Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
21Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
22---
23 arch/arm/include/asm/unistd.h | 1 +
24 arch/arm/kernel/calls.S | 1 +
25 2 files changed, 2 insertions(+), 0 deletions(-)
26
27diff --git a/arch/arm/include/asm/unistd.h b/arch/arm/include/asm/unistd.h
28index dd2bf53..d02cfb6 100644
29--- a/arch/arm/include/asm/unistd.h
30+++ b/arch/arm/include/asm/unistd.h
31@@ -392,6 +392,7 @@
32 #define __NR_rt_tgsigqueueinfo (__NR_SYSCALL_BASE+363)
33 #define __NR_perf_event_open (__NR_SYSCALL_BASE+364)
34 #define __NR_recvmmsg (__NR_SYSCALL_BASE+365)
35+#define __NR_accept4 (__NR_SYSCALL_BASE+366)
36
37 /*
38 * The following SWIs are ARM private.
39diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S
40index 37ae301..afeb71f 100644
41--- a/arch/arm/kernel/calls.S
42+++ b/arch/arm/kernel/calls.S
43@@ -375,6 +375,7 @@
44 CALL(sys_rt_tgsigqueueinfo)
45 CALL(sys_perf_event_open)
46 /* 365 */ CALL(sys_recvmmsg)
47+ CALL(sys_accept4)
48 #ifndef syscalls_counted
49 .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
50 #define syscalls_counted
51--
521.6.6.1
53
diff --git a/recipes-kernel/linux/linux-imx_2.6.35.3.bb b/recipes-kernel/linux/linux-imx_2.6.35.3.bb
index c487cbc..b63b6db 100644
--- a/recipes-kernel/linux/linux-imx_2.6.35.3.bb
+++ b/recipes-kernel/linux/linux-imx_2.6.35.3.bb
@@ -1,28 +1,24 @@
1# Copyright (C) 2011-2012 Freescale Semiconductor 1# Copyright (C) 2011-2012 Freescale Semiconductor
2# Released under the MIT license (see COPYING.MIT for the terms) 2# Released under the MIT license (see COPYING.MIT for the terms)
3 3
4PR = "${INC_PR}.2" 4PR = "${INC_PR}.3"
5 5
6include linux-imx.inc 6include linux-imx.inc
7 7
8COMPATIBLE_MACHINE = "(mxs|mx5)" 8COMPATIBLE_MACHINE = "(mxs|mx5)"
9 9
10# Revision of imx_2.6.35_10.12.01 branch 10# Revision of imx_2.6.35_10.12.01 branch
11SRCREV_mxs = "a0e8d80376957175e959f70aba51a1cae487e414" 11SRCREV_mxs = "6a31a551bc302e74a17e9051bba356903e98273f"
12LOCALVERSION = "-10.12.01+yocto-${DATE}" 12LOCALVERSION = "-10.12.01+yocto-${DATE}"
13 13
14# Revision of imx_2.6.35_11.09.01 branch 14# Revision of imx_2.6.35_11.09.01 branch
15SRCREV_mx5 = "3e2396eddb362ff70ee6eac43fb1f27f217dc0d1" 15SRCREV_mx5 = "cb0c4573ddf2eb4ee6942929f265560740f5dad2"
16LOCALVERSION = "-11.09.01+yocto-${DATE}" 16LOCALVERSION = "-11.09.01+yocto-${DATE}"
17 17
18SRC_URI += "file://0002-cgroupfs-create-sys-fs-cgroup-to-mount-cgroupfs-on.patch \ 18SRC_URI += "file://NFS-Fix-nfsroot-support.patch \
19 file://NFS-Fix-nfsroot-support.patch \
20 file://NFS-allow-nfs-root-mount-to-use-alternate-rpc-ports.patch \ 19 file://NFS-allow-nfs-root-mount-to-use-alternate-rpc-ports.patch \
21 file://no-unaligned-access.patch \ 20 file://no-unaligned-access.patch \
22 file://w1-fix-support-multiple-master.patch \
23 file://smsc95xx-randomize-mac-once.patch \
24 file://dm9601-support-for-usb-ethernet-0x0fe6-0x9700.patch \ 21 file://dm9601-support-for-usb-ethernet-0x0fe6-0x9700.patch \
25 file://wire-up-sys_accept4-on-ARM.patch \
26" 22"
27 23
28SRC_URI_append_mxs = " \ 24SRC_URI_append_mxs = " \