android_kernel_samsung_a7y1.../drivers/platform
João Paulo Rechi Vita d7a83ad4de asus-wmi: Create quirk for airplane_mode LED
[ Upstream commit a977e59c0c67c9d492bb16677ce66d67cae0ebd8 ]

Some Asus laptops that have an airplane-mode indicator LED, also have
the WMI WLAN user bit set, and the following bits in their DSDT:

Scope (_SB)
{
  (...)
  Device (ATKD)
  {
    (...)
    Method (WMNB, 3, Serialized)
    {
      (...)
      If (LEqual (IIA0, 0x00010002))
      {
        OWGD (IIA1)
        Return (One)
      }
    }
  }
}

So when asus-wmi uses ASUS_WMI_DEVID_WLAN_LED (0x00010002) to store the
wlan state, it drives the airplane-mode indicator LED (through the call
to OWGD) in an inverted fashion: the LED is ON when airplane mode is OFF
(since wlan is ON), and vice-versa.

This commit creates a quirk to not register a RFKill switch at all for
these laptops, to allow the asus-wireless driver to drive the airplane
mode LED correctly through the ASHS ACPI device. It also adds a match to
that quirk for the Asus X555UB, which is affected by this problem.

Signed-off-by: João Paulo Rechi Vita <jprvita@endlessm.com>
Reviewed-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 12:33:46 +02:00
..
chrome platform/chrome: cros_ec_proto: check for NULL transfer function 2020-04-06 19:02:11 +02:00
goldfish A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mips A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
olpc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
x86 asus-wmi: Create quirk for airplane_mode LED 2020-04-07 12:33:46 +02:00
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30