1. 25 2月, 2017 1 次提交
  2. 03 2月, 2017 1 次提交
  3. 14 12月, 2016 1 次提交
    • L
      platform/x86: acer-wmi: Only supports AMW0_GUID1 on acer family · 5241b193
      Lee, Chun-Yi 提交于
      The AMW0_GUID1 wmi is not only found on Acer family but also other
      machines like Lenovo, Fujitsu and Medion. In the past, acer-wmi handled
      those non-Acer machines by quirks list.
      
      But actually acer-wmi driver was loaded on any machine that had
      AMW0_GUID1. This behavior is strange because those machines should be
      supported by appropriate wmi drivers. e.g. fujitsu-laptop,
      ideapad-laptop.
      
      This patch adds the logic to check the machine that has AMW0_GUID1
      should be in Acer/Packard Bell/Gateway white list. But, it still keeps
      the quirk list of those supported non-acer machines for backward
      compatibility.
      Tested-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NLee, Chun-Yi <jlee@suse.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      5241b193
  4. 09 4月, 2016 1 次提交
  5. 07 10月, 2015 1 次提交
    • L
      acer-wmi: remove threeg and interface sysfs interfaces · c4602280
      Lee, Chun-Yi 提交于
      Since v3.0 kernel, acer-wmi driver auto detects internal 3G device and
      provides the threeg rfkill interface. So the sysfs interface of 3G is
      no longer necessary now.
      
      The 7b8aca65 patch added kernel information log to remind to user space
      for the threeg sysfs interface will be removed in 2012, then b58b9ffc patch
      updated the interface removing time to 2014.
      
      I think the 3 years lead time is enough for user space application to use
      rfkill instead of sysfs interface to control 3G device.
      
      This patch removes code about threeg sysfs interface. And it also removes the
      unused interface sysfs that exposes which ACPI-WMI method used by acer-wmi
      driver on the machine. The information is already exposed by the acer-wmi
      initial log.
      
      Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
      Cc: Matthew Garrett <mjg59@srcf.ucam.org>
      Cc: Dmitry Torokhov <dtor@mail.ru>
      Cc: Corentin Chary <corentincj@iksaif.net>
      Cc: Martin Kepplinger <martink@posteo.de>
      Cc: Darren Hart <dvhart@infradead.org>
      Signed-off-by: NLee, Chun-Yi <jlee@suse.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      c4602280
  6. 29 8月, 2015 1 次提交
  7. 19 6月, 2015 1 次提交
  8. 28 10月, 2014 1 次提交
  9. 20 10月, 2014 1 次提交
  10. 16 8月, 2014 4 次提交
  11. 20 5月, 2014 2 次提交
    • H
      acer-wmi: Add Aspire 5741 to video_vendor_dmi_table · 9404cd95
      Hans de Goede 提交于
      The Aspire 5741 has broken acpi-video backlight control, so add it to the
      quirk table.
      
      References: https://bugzilla.redhat.com/show_bug.cgi?id=1012674Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Reviewed-by: NLee, Chun-Yi <jlee@suse.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      9404cd95
    • H
      acer-wmi: Switch to acpi_video_unregister_backlight · d1337415
      Hans de Goede 提交于
      Switch from acpi_video_unregister(), to acpi_video_unregister_backlight(),
      so that the hotkeys handler registered by acpi-video stays in place.
      
      Since there are no mappings for the atkbd raw codes for the brightness
      keys used by newer Acer models in /lib/udev/hwdb.d/60-keyboard.hwdb, and
      since we map the wmi events with a code of KE_IGNORE, we rely on acpi-video
      to do the hotkey handling for us.
      
      For laptops such as the Acer Aspire 5750 which uses intel gfx this works
      despite us calling acpi_video_unregister() because the following happens:
      
       1) acpi-video module gets loaded (as it is a dependency of acer-wmi and i915)
       2) acpi-video does NOT call acpi_video_register()
       3) acer-wmi loads (assume it loads before i915), calls
          acpi_video_dmi_promote_vendor(); which sets
          ACPI_VIDEO_BACKLIGHT_DMI_VENDOR
       4) calls acpi_video_unregister -> not registered, nop
       5) i915 loads, calls acpi_video_register
       6) acpi_video_register registers the acpi_notifier for the hotkeys,
          does NOT register a backlight device because of
          ACPI_VIDEO_BACKLIGHT_DMI_VENDOR
      
      But on the Acer Aspire 5750G, which uses nvidia graphics the following happens:
       1) acpi-video module gets loaded (as it is a dependency of acer-wmi)
       2) acpi-video calls acpi_video_register()
       3) acpi_video_register registers the acpi_notifier for the hotkeys,
          and a backlight device
       4) acer-wmi loads, calls acpi_video_dmi_promote_vendor()
       5) calls acpi_video_unregister, this unregisters BOTH the acpi_notifier for
          the hotkeys AND the backlight device
      
      And we end up without any handler for the brightness hotkeys. This patch fixes
      this by switching over to acpi_video_unregister_backlight() which keeps the
      hotkey handler in place.
      
      References: https://bugzilla.kernel.org/show_bug.cgi?id=35622Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      d1337415
  12. 07 12月, 2013 1 次提交
    • L
      ACPI: Clean up inclusions of ACPI header files · 8b48463f
      Lv Zheng 提交于
      Replace direct inclusions of <acpi/acpi.h>, <acpi/acpi_bus.h> and
      <acpi/acpi_drivers.h>, which are incorrect, with <linux/acpi.h>
      inclusions and remove some inclusions of those files that aren't
      necessary.
      
      First of all, <acpi/acpi.h>, <acpi/acpi_bus.h> and <acpi/acpi_drivers.h>
      should not be included directly from any files that are built for
      CONFIG_ACPI unset, because that generally leads to build warnings about
      undefined symbols in !CONFIG_ACPI builds.  For CONFIG_ACPI set,
      <linux/acpi.h> includes those files and for CONFIG_ACPI unset it
      provides stub ACPI symbols to be used in that case.
      
      Second, there are ordering dependencies between those files that always
      have to be met.  Namely, it is required that <acpi/acpi_bus.h> be included
      prior to <acpi/acpi_drivers.h> so that the acpi_pci_root declarations the
      latter depends on are always there.  And <acpi/acpi.h> which provides
      basic ACPICA type declarations should always be included prior to any other
      ACPI headers in CONFIG_ACPI builds.  That also is taken care of including
      <linux/acpi.h> as appropriate.
      Signed-off-by: NLv Zheng <lv.zheng@intel.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Matthew Garrett <mjg59@srcf.ucam.org>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Acked-by: Bjorn Helgaas <bhelgaas@google.com> (drivers/pci stuff)
      Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> (Xen stuff)
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      8b48463f
  13. 27 2月, 2013 1 次提交
    • L
      acer-wmi: avoid the warning of 'devices' may be used uninitialized · f24c96ea
      Lee, Chun-Yi 提交于
      Fengguang Wu run kernel build test to platform-drivers-x86/linux-next git tree
      on x86_64 architecture and found a warning that was introduced by
      727651bf738b6b917335025d09323d0962eda114 commit:
      
      drivers/platform/x86/acer-wmi.c: In function ‘WMID_set_capabilities’:
      drivers/platform/x86/acer-wmi.c:1211: warning: ‘devices’ may be used
      uninitialized in this function
      
      This patch fixes the above warning message.
      
      Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
      Cc: Matthew Garrett <mjg@redhat.com>
      Cc: Dmitry Torokhov <dtor@mail.ru>
      Cc: Corentin Chary <corentincj@iksaif.net>
      Cc: Fengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: NLee, Chun-Yi <jlee@suse.com>
      Signed-off-by: NMatthew Garrett <matthew.garrett@nebula.com>
      f24c96ea
  14. 25 2月, 2013 2 次提交
  15. 08 1月, 2013 3 次提交
  16. 04 1月, 2013 1 次提交
    • G
      Drivers: platform: x86: remove __dev* attributes. · b859f159
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      __devinitconst, and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: Joey Lee <jlee@novell.com>
      Cc: Matthew Garrett <mjg@redhat.com>
      Cc: Peter Feuerer <peter@piie.net>
      Cc: Corentin Chary <corentin.chary@gmail.com>
      Cc: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
      Cc: Robert Gerlach <khnz@gmx.de>
      Cc: Ike Panhc <ike.pan@canonical.com>
      Cc: Henrique de Moraes Holschuh <ibm-acpi@hmh.eng.br>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b859f159
  17. 14 9月, 2012 1 次提交
  18. 28 7月, 2012 4 次提交
  19. 01 7月, 2012 1 次提交
  20. 01 6月, 2012 1 次提交
  21. 27 3月, 2012 5 次提交
    • L
      acer-wmi: add quirk table for video backlight vendor mode · 86924de2
      Lee, Chun-Yi 提交于
      There have some acer laptop have broken _BCM implemenation, the AML
      code wrote value to EC register but firmware didn't change brighenss.
      
      Fortunately, the brightness control works on those machines with
      vendor mode. So, add quirk table for video backlight vendor mode
      and unregister acpi video interface on those machines.
      
      Tested on Acer TravelMate 4750
      
      Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
      Cc: Matthew Garrett <mjg@redhat.com>
      Cc: Dmitry Torokhov <dtor@mail.ru>
      Cc: Corentin Chary <corentincj@iksaif.net>
      Cc: Thomas Renninger <trenn@suse.de>
      Signed-off-by: NLee, Chun-Yi <jlee@suse.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      86924de2
    • L
      acer-wmi: No wifi rfkill on Sony machines · 5719b819
      Lee, Chun-Yi 提交于
      The wireless rfkill should charged by sony-laptop but not acer-wmi.
      So, add Sony's SNY5001 acpi device to blacklist in acer-wmi.
      
      Tested on Sony Vaio
      
      Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
      Cc: Matthew Garrett <mjg@redhat.com>
      Cc: Mattia Dongili <malattia@linux.it>
      Cc: Dimitris N <ddarlac@gmail.com>
      Tested-by: NDimitris N <ddarlac@gmail.com>
      Signed-off-by: NLee, Chun-Yi <jlee@suse.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      5719b819
    • L
      acer-wmi: support Lenovo ideapad S205 Brazos wifi switch · c08f2086
      Lee, Chun-Yi 提交于
      Vaclav found a new ideapad S205 Brazos machine that used the same
      EC register of wireless with S205 but has different product name.
      
      So, add this machine to quirk for support wireless rfkill.
      
      Tested on Lenovo ideapad S205 Brazos
      Tested-by: NVaclav Mocek <vmocek@gmail.com>
      Acked-by: NIke Panhc <ike.pan@canonical.com>
      Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
      Cc: Matthew Garrett <mjg@redhat.com>
      Cc: Dmitry Torokhov <dtor@mail.ru>
      Cc: Corentin Chary <corentincj@iksaif.net>
      Cc: Thomas Renninger <trenn@suse.de>
      Signed-off-by: NLee, Chun-Yi <jlee@suse.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      c08f2086
    • L
      acer-wmi: fix out of input parameter size when set · 996d23ba
      Lee, Chun-Yi 提交于
      The input parameter of set device status is different with get device
      status. There have volume value element for set status but don't need
      for get action.
      
      On Acer TravelMate 4750 creates field on volume value element even
      doesn't use it in DSDT. So, add this patch for separate input paramter
      between set device status with get status.
      
      Tested on Acer TravelMate 4750
      
      Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
      Cc: Matthew Garrett <mjg@redhat.com>
      Cc: Dmitry Torokhov <dtor@mail.ru>
      Cc: Corentin Chary <corentincj@iksaif.net>
      Cc: Thomas Renninger <trenn@suse.de>
      Signed-off-by: NLee, Chun-Yi <jlee@suse.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      996d23ba
    • L
      acer-wmi: Detect communication hot key number · 34b6cfab
      Lee, Chun-Yi 提交于
      Currently we set a fixed hot key number to 0x01 for communction button,
      but, actually, the key number is different on each acer laptop and it was
      reported by SMBIOS.
      
      So, add this patch to get the communication hot key number from Acer
      OEM-specific SMBIOS Type AA.
      
      Tested on Acer TravelMate 4750
      
      Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
      Cc: Matthew Garrett <mjg@redhat.com>
      Cc: Dmitry Torokhov <dtor@mail.ru>
      Cc: Corentin Chary <corentincj@iksaif.net>
      Cc: Thomas Renninger <trenn@suse.de>
      Signed-off-by: NLee, Chun-Yi <jlee@suse.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      34b6cfab
  22. 21 3月, 2012 4 次提交
  23. 12 3月, 2012 1 次提交
    • I
      acer-wmi: No wifi rfkill on Lenovo machines · 461e7437
      Ike Panhc 提交于
      We have several reports which says acer-wmi is loaded on ideapads
      and register rfkill for wifi which can not be unblocked.
      
      Since ideapad-laptop also register rfkill for wifi and it works
      reliably, it will be fine acer-wmi is not going to register rfkill
      for wifi once VPC2004 is found.
      
      Also put IBM0068/LEN0068 in the list. Though thinkpad_acpi has no
      wifi rfkill capability, there are reports which says acer-wmi also
      block wireless on Thinkpad E520/E420.
      Signed-off-by: NIke Panhc <ike.pan@canonical.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      461e7437