1. 09 10月, 2008 1 次提交
    • C
      acer-wmi: Add rfkill support for wireless and bluetooth · 0606e1ab
      Carlos Corbacho 提交于
      This patch implements rfkill support for the wireless and bluetooth devices
      commonly found on Acer laptops.
      
      For now, we will always poll these devices once a second to guarantee we
      can catch state changes. On newer Acer laptops, it may be possible to rely
      on WMI events to do this instead, and experimental support for this will be
      added in a later patch.
      
      3G has been deliberately left off for now, as we still have no way to
      detect it, (nor, AFAIK, has any Linux user tried the code) and on laptops
      that don't support 3G, trying to poll for the status will leave the logs
      full of ACPI tracebacks.
      
      The old sysfs interface for wireless and bluetooth will be removed in a
      later patch.
      
      (Thanks to Henrique de Moraes Holschuh and Dmitry Torokhov for reviewing
      this patch).
      Signed-off-by: NCarlos Corbacho <carlos@strangeworlds.co.uk>
      Acked-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      0606e1ab
  2. 04 9月, 2008 1 次提交
  3. 03 9月, 2008 1 次提交
  4. 24 8月, 2008 1 次提交
  5. 15 8月, 2008 1 次提交
    • C
      acer-wmi: Fix wireless and bluetooth on early AMW0 v2 laptops · 5c742b45
      Carlos Corbacho 提交于
      In the old acer_acpi, I discovered that on some of the newer AMW0 laptops
      that supported the WMID methods, they don't work properly for setting the
      wireless and bluetooth values.
      
      So for the AMW0 V2 laptops, we want to use both the 'old' AMW0 and the
      'new' WMID methods for setting wireless & bluetooth to guarantee we always
      enable it.
      
      This was fixed in acer_acpi some time ago, but I forgot to port the patch
      over to acer-wmi when it was merged.
      
      (Without this patch, early AMW0 V2 laptops such as the Aspire 5040 won't
      work with acer-wmi, where-as they did with the old acer_acpi).
      
      AK: fix compilation
      Signed-off-by: NCarlos Corbacho <carlos@strangeworlds.co.uk>
      CC: stable@kernel.org
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      5c742b45
  6. 17 7月, 2008 6 次提交
  7. 13 3月, 2008 2 次提交
  8. 12 3月, 2008 2 次提交
  9. 21 2月, 2008 1 次提交
    • S
      acer-wmi: fix section mismatch warnings · 7560e385
      Sam Ravnborg 提交于
      Fix following warnings:
      WARNING: vmlinux.o(.text+0x672615): Section mismatch in reference from the function acer_platform_remove() to the function .exit.text:acer_backlight_exit()
      WARNING: vmlinux.o(.devinit.text+0x1e859): Section mismatch in reference from the function acer_platform_probe() to the function .init.text:acer_led_init()
      WARNING: vmlinux.o(.devinit.text+0x1e878): Section mismatch in reference from the function acer_platform_probe() to the function .init.text:acer_backlight_init()
      
      Remove __exit annotation from acer_backlight_exit(). We cannot reference
      a __exit annotated function from non __exit functions.
      
      acer_led_init() and acer_backlight_init() where both annotated __init but
      used from a __devinit function. This would result in an oops should
      gcc drop their inlining and the module are hot plugged.
      
      Fix by annotating acer_led_init() and acer_backlight_init() __devinit.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      7560e385
  10. 16 2月, 2008 1 次提交
  11. 09 2月, 2008 1 次提交
  12. 06 2月, 2008 1 次提交
    • C
      acer-wmi: Add driver for newer Acer laptops · 745a5d21
      Carlos Corbacho 提交于
      This is a driver for newer Acer (and Wistron) laptops. It adds wireless
      radio and bluetooth control, and on some laptops, exposes the mail LED and
      LCD backlight.
      
      v1:
      
      * Initial release
      
      v2:
      
      * Replace left over ACPI references with WMI
      * Add GUID based autoloading (depends on future work to WMI)
      * Add DMI based autoloading (backup solution until WMI sysfs/ class
        work is available)
      * Checkpatch fixes
      
      v3:
      
      * Add new EC quirks for Aspire 3100 & 5100, and Extensa 5220
      
      v4:
      
      * Simplified internal handling of WMID and AMW0 devices
      * Add autodetection for bluetooth and maximum brightness on AMW0 V2 and
        WMID laptops.
      
      v5:
      
      * Add EC quirk for Medion MD 98000
      * Add autodetection for AMW0, and mail LED on AMW0 and AMW0 V2.
      * Improve error handling
      * Fix AMW0 V2 bluetooth and wireless, by using both WMID and AMW0 methods
        to ensure that the correct value is always set.
      
      v6:
      
      * Fix 'use before initialisation' bug with quirks.
      
      v7
      
      * Fix bug on AMW0 where acer-wmi would exit if a mail LED was not
        detected.
      * Add Acer Aspire 9110 mail LED support
      * Fix section mismatch warnings
      Signed-off-by: NCarlos Corbacho <carlos@strangeworlds.co.uk>
      CC: Matthew Garrett <mjg59@srcf.ucam.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      745a5d21