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)
commit75971febd9b14a517c14e83fccf6a961b4c759f1
tree5d52b0da147c025983e8b1346ac0b9c30a36bd9d
parentdb2582afa7444a0ce6bb1ebf1431715969a10b06
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]