acer-wmi patches for 2.6.30 (take 2)
Subsystems (4)
cover acer-wmi patches for 2.6.30 (take 2)
Len,
The following are the patches that really are for 2.6.30-rc0 for acer-wmi.
The first one is quite a nasty one, as it appears the Aspire One's non-functional ACPI-WMI interface is now causing problems for userspace.
-Carlos
---
Andy Whitcroft (1):
acer-wmi: Cleanup the failure cleanup handling
Carlos Corbacho (2):
acer-wmi: Update copyright notice & documentation
acer-wmi: Blacklist Acer Aspire One
Documentation/laptops/acer-wmi.txt | 10 +++++++--- drivers/platform/x86/acer-wmi.c | 35 +++++++++++++++++++++++++++++++++-- 2 files changed, 40 insertions(+), 5 deletions(-)
PATCH 1/3 acer-wmi: Blacklist Acer Aspire One
The Aspire One's ACPI-WMI interface is a placeholder that does nothing, and the invalid results that we get from it are now causing userspace problems as acer-wmi always returns that the rfkill is enabled (i.e. the radio is off, when it isn't). As it's hardware controlled, acer-wmi isn't needed on the Aspire One either.
Thanks to Andy Whitcroft at Canonical for tracking down Ubuntu's userspace issues to this.
---
drivers/platform/x86/acer-wmi.c | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-)
drivers/platform/x86/acer-wmi.c +25 -0
@@ -225,6 +225,25 @@ static struct quirk_entry quirk_fujitsu_amilo_li_1718 = { .wireless = 2, }; +/* The Aspire One has a dummy ACPI-WMI interface - disable it */ +static struct dmi_system_id __devinitdata acer_blacklist[] = { + { + .ident ="Acer Aspire One (SSD)" , + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), +DMI_MATCH (DMI_PRODUCT_NAME ,"AOA110" ), + }, + }, + { + .ident ="Acer Aspire One (HDD)" , + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), +DMI_MATCH (DMI_PRODUCT_NAME ,"AOA150" ), + }, + }, + {} +}; +static struct dmi_system_id acer_quirks[] = { { .callback = dmi_matched,
@@ -1254,6 +1273,12 @@ static int __init acer_wmi_init(void)printk (ACER_INFO "Acer Laptop ACPI-WMI Extras\n" ); +if (dmi_check_system (acer_blacklist)) { +printk (ACER_INFO "Blacklisted hardware detected - " +"not loading\n" ); +return -ENODEV ; + } +find_quirks ();/*
PATCH 2/3 acer-wmi: Cleanup the failure cleanup handling
In reply to Carlos CorbachoFrom: Andy Whitcroft <[email protected]>
Cleanup the failure cleanup handling for brightness and email led.
[cc: Split out from another patch]
---
drivers/platform/x86/acer-wmi.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)
drivers/platform/x86/acer-wmi.c +7 -1
@@ -1136,11 +1136,17 @@ static int __devinit acer_platform_probe(struct platform_device *device) } err =acer_rfkill_init (&device->dev); +if (err) + goto error_rfkill;return err; +error_rfkill: +if (has_cap (ACER_CAP_BRIGHTNESS )) +acer_backlight_exit (); error_brightness: -acer_led_exit (); +if (has_cap (ACER_CAP_MAILLED )) +acer_led_exit (); error_mailled:return err; }
PATCH 3/3 acer-wmi: Update copyright notice & documentation
In reply to Carlos CorbachoExplicitly note in the documentation that the Acer Aspire One is not supported.
---
Documentation/laptops/acer-wmi.txt | 10 +++++++--- drivers/platform/x86/acer-wmi.c | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-)
Documentation/laptops/acer-wmi.txt +7 -3
@@ -1,9 +1,9 @@ Acer Laptop WMI Extras Driver http://code.google.com/p/aceracpi -Version 0.2 -18th August 2008 +Version 0.3 +4th April 2009 -Copyright 2007-2008 Carlos Corbacho <[email protected]> +Copyright 2007-2009 Carlos Corbacho <[email protected]> acer-wmi is a driver to allow you to control various parts of your Acer laptop hardware under Linux which are exposed via ACPI-WMI.
@@ -36,6 +36,10 @@ not possible in kernel space from a 64 bit OS. Supported Hardware ****************** +NOTE: The Acer Aspire One is not supported hardware. It cannot work with +acer-wmi until Acer fix their ACPI-WMI implementation on them, so has been +blacklisted until that happens. + Please see the website for the current list of known working hardare: http://code.google.com/p/aceracpi/wiki/SupportedHardware
drivers/platform/x86/acer-wmi.c +1 -1
@@ -1,7 +1,7 @@/* * Acer WMI Laptop Extras * -* Copyright (C) 2007-2008 Carlos Corbacho <[email protected]> +* Copyright (C) 2007-2009 Carlos Corbacho <[email protected]> * * Based on acer_acpi: * Copyright (C) 2005-2007 E.M. Smith
applied
thanks,
Len Brown, Intel Open Source Technology Center
Quoted 28 lines · Carlos Corbacho
Len,
The following are the patches that really are for 2.6.30-rc0 for acer-wmi.
The first one is quite a nasty one, as it appears the Aspire One's non-functional ACPI-WMI interface is now causing problems for userspace.
-Carlos
---Andy Whitcroft (1):
acer-wmi: Cleanup the failure cleanup handlingCarlos Corbacho (2):
acer-wmi: Update copyright notice & documentation
acer-wmi: Blacklist Acer Aspire OneDocumentation/laptops/acer-wmi.txt | 10 +++++++--- drivers/platform/x86/acer-wmi.c | 35 +++++++++++++++++++++++++++++++++-- 2 files changed, 40 insertions(+), 5 deletions(-)--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html