summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRobert Bradford <rob@openedhand.com>2008-02-21 15:20:17 +0000
committerRobert Bradford <rob@openedhand.com>2008-02-21 15:20:17 +0000
commitee0fb8576f5f32d805776ac1aaf028020e1e9e89 (patch)
tree35a8fcf68c62fb5b70d451ba9e8a13ff2724812e /meta
parent21c0c98d9a7b0d2a0c16f44a493658f03b7432b7 (diff)
downloadpoky-ee0fb8576f5f32d805776ac1aaf028020e1e9e89.tar.gz
Add patch to fix crashes caused by udevtrigger on startup.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3843 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/linux/linux-2.6.23/em-x270/em-x270-battery-sysfs-fix.patch40
-rw-r--r--meta/packages/linux/linux_2.6.23.bb5
2 files changed, 43 insertions, 2 deletions
diff --git a/meta/packages/linux/linux-2.6.23/em-x270/em-x270-battery-sysfs-fix.patch b/meta/packages/linux/linux-2.6.23/em-x270/em-x270-battery-sysfs-fix.patch
new file mode 100644
index 0000000000..51ec773e5c
--- /dev/null
+++ b/meta/packages/linux/linux-2.6.23/em-x270/em-x270-battery-sysfs-fix.patch
@@ -0,0 +1,40 @@
1Index: linux-2.6.23/arch/arm/mach-pxa/em-x270-pm.c
2===================================================================
3--- linux-2.6.23.orig/arch/arm/mach-pxa/em-x270-pm.c 2008-02-21 14:30:06.000000000 +0000
4+++ linux-2.6.23/arch/arm/mach-pxa/em-x270-pm.c 2008-02-21 14:59:24.000000000 +0000
5@@ -461,6 +461,9 @@
6 else {
7 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING;
8 }
9+ }
10+ else {
11+ val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING;
12 }
13 }
14 else {
15@@ -547,8 +550,9 @@
16 pr_debug("%s: MODEL = %s\n", __FUNCTION__, val->strval);
17 break;
18 default: break;
19+ return -1;
20 }
21-
22+
23 return 0;
24 }
25
26Index: linux-2.6.23/drivers/power/em_x270_battery.c
27===================================================================
28--- linux-2.6.23.orig/drivers/power/em_x270_battery.c 2008-02-21 12:21:53.000000000 +0000
29+++ linux-2.6.23/drivers/power/em_x270_battery.c 2008-02-21 15:00:51.000000000 +0000
30@@ -418,8 +418,9 @@
31 pr_debug("%s: MODEL = %s\n", __FUNCTION__, val->strval);
32 break;
33 default: break;
34+ return -1;
35 }
36-
37+
38 return 0;
39 }
40
diff --git a/meta/packages/linux/linux_2.6.23.bb b/meta/packages/linux/linux_2.6.23.bb
index 8c525d6e80..a517defd0f 100644
--- a/meta/packages/linux/linux_2.6.23.bb
+++ b/meta/packages/linux/linux_2.6.23.bb
@@ -7,7 +7,7 @@ DEFAULT_PREFERENCE_em-x270 = "1"
7DEFAULT_PREFERENCE_mpc8313e-rdb = "1" 7DEFAULT_PREFERENCE_mpc8313e-rdb = "1"
8DEFAULT_PREFERENCE_mpc8323e-rdb = "1" 8DEFAULT_PREFERENCE_mpc8323e-rdb = "1"
9 9
10PR = "r5" 10PR = "r6"
11 11
12SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.23.tar.bz2 \ 12SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.23.tar.bz2 \
13 file://binutils-buildid-arm.patch;patch=1 \ 13 file://binutils-buildid-arm.patch;patch=1 \
@@ -15,7 +15,8 @@ SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.23.tar.bz2 \
15 " 15 "
16 16
17SRC_URI_append_em-x270 = "\ 17SRC_URI_append_em-x270 = "\
18 file://em-x270.patch;patch=1 " 18 file://em-x270.patch;patch=1 \
19 file://em-x270-battery-sysfs-fix.patch;patch=1 "
19 20
20SRC_URI_append_cm-x270 = "\ 21SRC_URI_append_cm-x270 = "\
21 file://0001-cm-x270-base2.patch;patch=1 \ 22 file://0001-cm-x270-base2.patch;patch=1 \