platform/x86: acer-wmi: Inform firmware that RF Button Driver is active
authorChris Chiu <chiu@endlessm.com>
Wed, 8 Feb 2017 13:51:40 +0000 (07:51 -0600)
committerDarren Hart <dvhart@linux.intel.com>
Sat, 25 Feb 2017 07:48:49 +0000 (23:48 -0800)
commit280642c3c8dda79da39e056fd5480d1c3942524e
treebc4487221136edebed6dc80d25a38514533e7347
parent4ac20e62efc6b8a63a1a534ddf236af7fe8849b5
platform/x86: acer-wmi: Inform firmware that RF Button Driver is active

The same method to activate LM(Launch Manager) can also be used to
activate the RF Button driver with different bit toggled in the same
lm_status. To express that many functions this byte field can achieve,
rename the lm_status to app_status. And also the app_mask is the bit
mask which specifically indicate which bits are going to be changed.

This solves a problem where the AR9565 wifi included in the
Acer Aspire ES1-421 is permanently hard blocked according to the rfkill
GPIO read by ath9k.

Signed-off-by: Chris Chiu <chiu@endlessm.com>
Signed-off-by: Daniel Drake <drake@endlessm.com>
Reviewed-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/acer-wmi.c