]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: Add Acer Wireless Radio Control driver
authorChris Chiu <chiu@endlessm.com>
Tue, 21 Nov 2017 05:30:44 +0000 (13:30 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 27 Nov 2017 11:39:11 +0000 (13:39 +0200)
commitdc5077ad8c7c586a2160847bdbf0a50b4563b75f
tree5d52b0da147c025983e8b1346ac0b9c30a36bd9d
parent63b4b042c68f026b0a2f1383a501db4736709102
platform/x86: Add Acer Wireless Radio Control driver

New Acer laptops in 2018 will have a separate ACPI device for
notifications from the airplane mode hotkey. The device name in
the DSDT is SMKB and its ACPI _HID is 10251229.

For these models, when the airplane mode hotkey (Fn+F3) pressed,
a query 0x02 is started in the Embedded Controller, and all this
query does is a notify SMKB with the value 0x80.

        Scope (_SB.PCI0.LPCB.EC0)
        {
                (...)
                Method (_Q02, 0, NotSerialized)  // _Qxx: EC Query
                {
                    HKEV (0x2, One)
    Notify (SMKB, 0x80) // Status Change
                }
        }

Based on code from asus-wireless

Signed-off-by: Chris Chiu <chiu@endlessm.com>
Reviewed-by: João Paulo Rechi Vita <jprvita@endlessm.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/Kconfig
drivers/platform/x86/Makefile
drivers/platform/x86/acer-wireless.c [new file with mode: 0644]