OSDN Git Service

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)
commit3e2bc5c5b3274ec7402fabbfba557ea58084985e
treefbfd26bf21e7772ebf9dacba9bea302a12d0a233
parentfeb4ec1412ab948c30dbf98cd9326825e8d49513
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