]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.25/patches.arch/acpi_ec_limit_asus_workaround.patch
Reenabled linux-xen and xen-image build
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.arch / acpi_ec_limit_asus_workaround.patch
CommitLineData
00e5a55c
BS
1From: Alexey Starikovskiy <astarikovskiy@suse.de>
2Subject: ACPI: EC: Limit workaround for ASUS notebooks even more
3References: bnc#492658 bnc#496871 and others
4Patch-Mainline: yes
5Commit-ID: 235c4a59278eb07e61d909f1f0c233733034a8b3
6
7Signed-off-by: Thomas Renninger <trenn@suse.de>
8
9References: http://bugzilla.kernel.org/show_bug.cgi?id=11884
10
11Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
12Signed-off-by: Len Brown <len.brown@intel.com>
13
14---
15 drivers/acpi/ec.c | 3 ++-
16 1 file changed, 2 insertions(+), 1 deletion(-)
17
18Index: linux-2.6.27-SLE11_BRANCH/drivers/acpi/ec.c
19===================================================================
20--- linux-2.6.27-SLE11_BRANCH.orig/drivers/acpi/ec.c
21+++ linux-2.6.27-SLE11_BRANCH/drivers/acpi/ec.c
22@@ -1017,7 +1017,8 @@ int __init acpi_ec_ecdt_probe(void)
23 * which needs it, has fake EC._INI method, so use it as flag.
24 * Keep boot_ec struct as it will be needed soon.
25 */
26- if (ACPI_FAILURE(acpi_get_handle(boot_ec->handle, "_INI", &dummy)))
27+ if (!dmi_name_in_vendors("ASUS") ||
28+ ACPI_FAILURE(acpi_get_handle(boot_ec->handle, "_INI", &dummy)))
29 return -ENODEV;
30 install:
31 if (!ec_install_handlers(boot_ec)) {