]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: acer-wmi: Detect RF Button capability
authorJoão Paulo Rechi Vita <jprvita@gmail.com>
Tue, 6 Jun 2017 20:07:22 +0000 (13:07 -0700)
committerDarren Hart (VMware) <dvhart@infradead.org>
Tue, 13 Jun 2017 18:00:18 +0000 (11:00 -0700)
commit9220524e826a45fb1693252358977aebed13bfce
treefbfd26bf21e7772ebf9dacba9bea302a12d0a233
parent8424dc0afd682f37f2aeccf3f5e6e4fd3c2b174c
platform/x86: acer-wmi: Detect RF Button capability

If a machine reports a RF Button in the communication button device
bitmap, we need to remove it before calling Get Device Status otherwise
it will return the "Undefined device" (0xE2) error code.

Although this may be a BIOS bug, we don't really need to get or set the
RF Button status. The status indicator LED embedded in the button is
controlled by firmware logic, depending on the status of the wireless
radios present on the machine (WiFi || WWAN).

This commit fixes the wireless status indicator LED on the Acer
TravelMate P648-G2-MG, and cleans the following message from the kernel
log: "Get Current Device Status failed: 0xe2 - 0x0".

Signed-off-by: João Paulo Rechi Vita <jprvita@endlessm.com>
Reviewed-by: "Lee, Chun-Yi" <joeyli.kernel@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/acer-wmi.c