From 564169ab0dbf721c1eb571b7019038d88e40591f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 12 Jan 2010 20:42:21 +0100 Subject: [PATCH] kernel: added patch to make asus_atk0110 work on my board. The patch has been submitted to the lm-sensors mailing list, I hope they pull it for the next kernel version. --HG-- extra : convert_revision : 37544276e9fa7cbccd99812d651ff0a2aa206ccf --- ...atk0110_missing_MBIF_method_not_fatal.diff | 36 +++++++++++++++++++ srcpkgs/kernel/template | 1 + 2 files changed, 37 insertions(+) create mode 100644 srcpkgs/kernel/patches/asus_atk0110_missing_MBIF_method_not_fatal.diff diff --git a/srcpkgs/kernel/patches/asus_atk0110_missing_MBIF_method_not_fatal.diff b/srcpkgs/kernel/patches/asus_atk0110_missing_MBIF_method_not_fatal.diff new file mode 100644 index 00000000000..efc107c02ea --- /dev/null +++ b/srcpkgs/kernel/patches/asus_atk0110_missing_MBIF_method_not_fatal.diff @@ -0,0 +1,36 @@ +Patch submitted to lm-sensors@lm-sensors.org, here: + +http://lists.lm-sensors.org/pipermail/lm-sensors/2010-January/027606.html + +--- drivers/hwmon/asus_atk0110.c.orig 2010-01-07 00:07:45.000000000 +0100 ++++ drivers/hwmon/asus_atk0110.c 2010-01-12 19:38:48.066204943 +0100 +@@ -1141,12 +1141,7 @@ static int atk_add(struct acpi_device *d + buf.length = ACPI_ALLOCATE_BUFFER; + ret = acpi_evaluate_object_typed(data->atk_handle, BOARD_ID, NULL, + &buf, ACPI_TYPE_PACKAGE); +- if (ret != AE_OK) { +- dev_dbg(&device->dev, "atk: method MBIF not found\n"); +- err = -ENODEV; +- goto out; +- } +- ++ if (ret == AE_OK) { + obj = buf.pointer; + if (obj->package.count >= 2 && + obj->package.elements[1].type == ACPI_TYPE_STRING) { +@@ -1154,6 +1149,15 @@ static int atk_add(struct acpi_device *d + obj->package.elements[1].string.pointer); + } + ACPI_FREE(buf.pointer); ++ } else { ++ /* ++ * Some DSDTs do not have the MBIF method, but this should ++ * not be treated as fatal error! just mention this fact ++ * and continue. ++ */ ++ dev_dbg(&device->dev, ++ "atk: method MBIF not found, continuing...\n"); ++ } + + /* Check for hwmon methods: first check "old" style methods; note that + * both may be present: in this case we stick to the old interface; diff --git a/srcpkgs/kernel/template b/srcpkgs/kernel/template index 672467a0540..b1acb3f32d0 100644 --- a/srcpkgs/kernel/template +++ b/srcpkgs/kernel/template @@ -3,6 +3,7 @@ pkgname=kernel _kernel_ver=2.6.32 #version=${_kernel_ver} _kernel_patch_ver=3 +revision=1 version=${_kernel_ver}.${_kernel_patch_ver} wrksrc="linux-$version" distfiles="${KERNEL_SITE}/kernel/v2.6/linux-$version.tar.bz2"