android_kernel_oneplus_msm8998/drivers/platform/x86
Zach Ploskey dac30e3dbd platform/x86: ideapad-laptop: handle ACPI event 1
[ Upstream commit cfee5d63767b2e7997c1f36420d008abbe61565c ]

On Ideapad laptops, ACPI event 1 is currently not handled. Many models
log "ideapad_laptop: Unknown event: 1" every 20 seconds or so while
running on battery power. Some convertible laptops receive this event
when switching in and out of tablet mode.

This adds and additional case for event 1 in ideapad_acpi_notify to call
ideapad_input_report(priv, vpc_bit), so that the event is reported to
userspace and we avoid unnecessary logging.

Fixes bug #107481 (https://bugzilla.kernel.org/show_bug.cgi?id=107481)
Fixes bug #65751 (https://bugzilla.kernel.org/show_bug.cgi?id=65751)

Signed-off-by: Zach Ploskey <zach@ploskey.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-07-05 14:37:19 +02:00
..
acer-wmi.c platform/x86: acer-wmi: setup accelerometer when machine has appropriate notify event 2017-04-21 09:30:07 +02:00
acerhdf.c thermal: consistently use int for temperatures 2015-08-03 23:15:50 +08:00
alienware-wmi.c
amilo-rfkill.c
apple-gmux.c vga_switcheroo: Constify vga_switcheroo_handler 2015-10-20 20:19:29 +02:00
asus-laptop.c asus-laptop: Add key found on Asus F3M 2015-08-10 21:24:23 -07:00
asus-nb-wmi.c platform/x86: asus-nb-wmi.c: Add X45U quirk 2017-01-09 08:07:50 +01:00
asus-wmi.c platform-drivers-x86 for 4.4-2 2015-11-13 21:47:06 -08:00
asus-wmi.h
classmate-laptop.c
compal-laptop.c compal-laptop: Add charge control limit 2015-10-03 08:44:57 -07:00
dell-laptop.c dell-laptop: Do not cache hwswitch state 2015-07-06 15:35:23 -07:00
dell-rbtn.c dell-rbtn: Ignore ACPI notifications if device is suspended 2016-06-01 12:15:50 -07:00
dell-rbtn.h
dell-smo8800.c
dell-wmi-aio.c
dell-wmi.c
eeepc-laptop.c
eeepc-wmi.c
fujitsu-laptop.c
fujitsu-tablet.c
hdaps.c
hp-wireless.c hp-wireless: remove unneeded goto/label in hpwl_init 2015-08-25 23:34:15 -07:00
hp-wmi.c hp-wmi: Fix wifi cannot be hard-unblocked 2016-08-20 18:09:19 +02:00
hp_accel.c
ibm_rtl.c move io-64-nonatomic*.h out of asm-generic 2015-10-15 00:21:07 +02:00
ideapad-laptop.c platform/x86: ideapad-laptop: handle ACPI event 1 2017-07-05 14:37:19 +02:00
intel-rst.c
intel-smartconnect.c
intel_ips.c move io-64-nonatomic*.h out of asm-generic 2015-10-15 00:21:07 +02:00
intel_ips.h
intel_menlow.c linux/thermal.h: rename KELVIN_TO_CELSIUS to DECI_KELVIN_TO_CELSIUS 2015-10-10 11:32:30 +08:00
intel_mid_powerbtn.c platform/x86: intel_mid_powerbtn: Set IRQ_ONESHOT 2017-02-01 08:30:54 +01:00
intel_mid_thermal.c thermal: consistently use int for temperatures 2015-08-03 23:15:50 +08:00
intel_oaktrail.c
intel_pmc_ipc.c - New Device Support 2015-09-04 11:35:03 -07:00
intel_pmic_gpio.c
intel_scu_ipc.c intel_scu_ipc: Protect dev member assignment on ->remove() 2015-10-15 08:23:30 -07:00
intel_scu_ipcutil.c intel_scu_ipcutil: underflow in scu_reg_access() 2016-02-25 12:01:23 -08:00
Kconfig platform-drivers-x86 for 4.4-2 2015-11-13 21:47:06 -08:00
Makefile platform/x86: Toshiba WMI Hotkey Driver 2015-10-03 10:07:08 -07:00
msi-laptop.c
msi-wmi.c
mxm-wmi.c
panasonic-laptop.c
pvpanic.c
samsung-laptop.c samsung-laptop: Port to new backlight interface selection API 2015-06-19 01:12:25 +02:00
samsung-q10.c
sony-laptop.c sony-laptop: Fix handling sony_nc_hotkeys_decode result 2015-10-03 09:41:54 -07:00
surfacepro3_button.c surface pro 3: Add support driver for Surface Pro 3 buttons 2015-08-26 00:21:27 -07:00
tc1100-wmi.c tc1100-wmi: Delete an unnecessary check before the function call "kfree" 2015-06-26 15:55:51 -07:00
thinkpad_acpi.c thinkpad_acpi: Don't yell on unsupported brightness interfaces 2015-11-06 09:58:01 -08:00
topstar-laptop.c
toshiba-wmi.c toshiba-wmi: Fix loading the driver on non Toshiba laptops 2016-11-18 10:48:35 +01:00
toshiba_acpi.c toshiba_acpi: Fix regression caused by hotkey enabling value 2016-05-04 14:48:47 -07:00
toshiba_bluetooth.c
toshiba_haps.c
wmi.c wmi: Remove private %pUL implementation 2015-09-10 09:07:04 -07:00
xo1-rfkill.c
xo15-ebook.c