From ee0fb8576f5f32d805776ac1aaf028020e1e9e89 Mon Sep 17 00:00:00 2001 From: Robert Bradford Date: Thu, 21 Feb 2008 15:20:17 +0000 Subject: 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 --- .../em-x270/em-x270-battery-sysfs-fix.patch | 40 ++++++++++++++++++++++ meta/packages/linux/linux_2.6.23.bb | 5 +-- 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 meta/packages/linux/linux-2.6.23/em-x270/em-x270-battery-sysfs-fix.patch 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 000000000..51ec773e5 --- /dev/null +++ b/meta/packages/linux/linux-2.6.23/em-x270/em-x270-battery-sysfs-fix.patch @@ -0,0 +1,40 @@ +Index: linux-2.6.23/arch/arm/mach-pxa/em-x270-pm.c +=================================================================== +--- linux-2.6.23.orig/arch/arm/mach-pxa/em-x270-pm.c 2008-02-21 14:30:06.000000000 +0000 ++++ linux-2.6.23/arch/arm/mach-pxa/em-x270-pm.c 2008-02-21 14:59:24.000000000 +0000 +@@ -461,6 +461,9 @@ + else { + val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; + } ++ } ++ else { ++ val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; + } + } + else { +@@ -547,8 +550,9 @@ + pr_debug("%s: MODEL = %s\n", __FUNCTION__, val->strval); + break; + default: break; ++ return -1; + } +- ++ + return 0; + } + +Index: linux-2.6.23/drivers/power/em_x270_battery.c +=================================================================== +--- linux-2.6.23.orig/drivers/power/em_x270_battery.c 2008-02-21 12:21:53.000000000 +0000 ++++ linux-2.6.23/drivers/power/em_x270_battery.c 2008-02-21 15:00:51.000000000 +0000 +@@ -418,8 +418,9 @@ + pr_debug("%s: MODEL = %s\n", __FUNCTION__, val->strval); + break; + default: break; ++ return -1; + } +- ++ + return 0; + } + diff --git a/meta/packages/linux/linux_2.6.23.bb b/meta/packages/linux/linux_2.6.23.bb index 8c525d6e8..a517defd0 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" DEFAULT_PREFERENCE_mpc8313e-rdb = "1" DEFAULT_PREFERENCE_mpc8323e-rdb = "1" -PR = "r5" +PR = "r6" SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.23.tar.bz2 \ 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 \ " SRC_URI_append_em-x270 = "\ - file://em-x270.patch;patch=1 " + file://em-x270.patch;patch=1 \ + file://em-x270-battery-sysfs-fix.patch;patch=1 " SRC_URI_append_cm-x270 = "\ file://0001-cm-x270-base2.patch;patch=1 \ -- cgit v1.2.3