1. 05 Jul, 2017 1 commit
  2. 19 Oct, 2016 1 commit
  3. 12 Oct, 2016 1 commit
  4. 08 Jun, 2016 1 commit
  5. 27 May, 2016 1 commit
  6. 23 Mar, 2016 1 commit
  7. 24 Jan, 2016 1 commit
  8. 19 Jan, 2016 1 commit
  9. 09 Nov, 2015 3 commits
    • Hans de Goede's avatar
      ideapad-laptop: Add Lenovo Yoga 900 to no_hw_rfkill dmi list · f71c882d
      Hans de Goede authored
      Like some of the other Yoga models the Lenovo Yoga 900 does not have a
      hw rfkill switch, and trying to read the hw rfkill switch through the
      ideapad module causes it to always reported blocking breaking wifi.
      
      This commit adds the Lenovo Yoga 900 to the no_hw_rfkill dmi list, fixing
      the wifi breakage.
      
      BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1275490
      Cc: stable@vger.kernel.org
      Reported-and-tested-by: default avatarKevin Fenzi <kevin@scrye.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      f71c882d
    • Arnd Bergmann's avatar
      ideapad-laptop: include Yoga 3 1170 in add rfkill whitelist · c789fffc
      Arnd Bergmann authored
      This changes the entry to the whitelist of machines that do not have
      a physical rfkill switch. Unfortunately, the Yoga 3 generation seems
      to use upper-case letters for the YOGA 3 Pro-1370, while it uses normal
      capitalization for its Yoga 3 1170 and 1470 siblings.
      
      In order to catch all variants of the Yoga 3, I'm changing both
      the entry for the 1470 (using "Yoga" as the name) and the entry for
      the Pro 1370 (using all-caps "YOGA") to not match the exact model number
      but only the generation. This way, the 1170 and 1470 models share one
      entry, but if the firmware changes from one format to the other, it will
      still work.
      
      The second entry for Yoga 2 Pro that was recently added for some
      reason ended up not being added in alphanumeric order, and I'm
      moving the Yoga 3 1470 entry down while making the change, so they
      are sorted more logically.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      c789fffc
    • Arnd Bergmann's avatar
      ideapad-laptop: add support for Yoga 3 ESC key · 74caab99
      Arnd Bergmann authored
      The ideapad-laptop handles most special keys on various Lenovo Laptops
      including the Yoga line. Unfortunately, the Yoga 3 11/13/14 models have
      one important exception, which is the Fn-ESC combination.
      
      On other Lenovo Laptops, this is FnLock, which switches the function keys
      between the primary (Mute, Vol down, Vol up, ...) and the secondary (F1,
      F2, F3, ...) behavior. On the new machines, FnLock is only available
      through BIOS setup (possibly through a yet-to-be-implemented feature
      in this driver) but not through Fn-ESC, but instead the ESC key itself
      switched between ESC and a "Paper Display" app for Windows.
      
      Unfortunately, that means that you can never have both ESC *and* the
      function keys working at the same time without needing to press Fn on
      one of them.
      As pointed out in the official Lenovo Forum by dozens of users, this
      makes the machine rather useless for any serious work [1].
      
      I have now studied the ACPI DSDT one more time and found the event
      that is generated for the ESC key. Unlike all other key events on this
      machine, it is actually a WMI, while the other ones are read from the
      embedded controller.
      
      I am now installing a WMI notifier that uses the event number from the
      WMI subsystem as the scancode. The only event number generated here is
      '128', and that fits in nicely with the two existing ranges of scancodes
      used by the EC: 0-15 for the 16-bit VPCCMD_R_VPC register, 16-17 for
      the VPCCMD_R_NOVO register and 64-67 for VPCCMD_R_SPECIAL_BUTTONS.
      
      The only sane way to handle this button (in absence of the Windows Paper
      Display driver) seems to be to have it emit KEY_ESC, so that is what
      I use as the default. Should any user ever want to overwrite the default,
      they can install their own keymap.
      
      To ensure that we can still build the driver without adding a CONFIG_WMI
      dependency, all new code is enclosed in #ifdef.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      
      [1] https://forums.lenovo.com/t5/Lenovo-Yoga-Series-Notebooks/YOGA-3-14-How-to-reclaim-my-Esc-key-and-permanently-disable/td-p/2070816Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      74caab99
  10. 11 Aug, 2015 2 commits
  11. 18 Jun, 2015 1 commit
  12. 15 Jun, 2015 1 commit
    • Arnd Bergmann's avatar
      ideapad: fix software rfkill setting · 4b200b46
      Arnd Bergmann authored
      This fixes a several year old regression that I found while trying
      to get the Yoga 3 11 to work. The ideapad_rfk_set function is meant
      to send a command to the embedded controller through ACPI, but
      as of c1f73658, it sends the index of the rfkill device instead
      of the command, and ignores the opcode field.
      
      This changes it back to the original behavior, which indeed
      flips the rfkill state as seen in the debugfs interface.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: c1f73658 ("ideapad: pass ideapad_priv as argument (part 2)")
      Cc: stable@vger.kernel.org # v2.6.38+
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      4b200b46
  13. 01 Jun, 2015 1 commit
  14. 03 May, 2015 1 commit
  15. 03 Dec, 2014 1 commit
  16. 28 Oct, 2014 1 commit
  17. 20 Oct, 2014 1 commit
  18. 02 Sep, 2014 1 commit
  19. 28 Aug, 2014 1 commit
  20. 16 Aug, 2014 3 commits
  21. 10 Jun, 2014 2 commits
  22. 07 Dec, 2013 1 commit
    • Lv Zheng's avatar
      ACPI: Clean up inclusions of ACPI header files · 8b48463f
      Lv Zheng authored
      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: default avatarLv 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: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      8b48463f
  23. 20 Nov, 2013 1 commit
  24. 25 Sep, 2013 5 commits
  25. 09 May, 2013 1 commit
  26. 25 Jan, 2013 1 commit
  27. 03 Jan, 2013 1 commit
    • Greg Kroah-Hartman's avatar
      Drivers: platform: x86: remove __dev* attributes. · b859f159
      Greg Kroah-Hartman authored
      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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b859f159
  28. 21 Sep, 2012 1 commit
  29. 20 Aug, 2012 2 commits