ACPI: button: Add a LID switch blacklist and add 1 model to it
authorHans de Goede <hdegoede@redhat.com>
Wed, 22 Nov 2017 15:06:12 +0000 (16:06 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Dec 2017 00:05:02 +0000 (01:05 +0100)
commit9e811e19a7aca16d40e1ce0c68e9bbffea1b9810
treeba75435905dfc3d6c5e517a980136fb38f4e211c
parentae35d656d796fa203787455ce59874c6682dc0cf
ACPI: button: Add a LID switch blacklist and add 1 model to it

The GP-electronic T701 tablet does not have a LID switch, but it
does define a LID device in its DSDT. The _LID method points to
the "\\_SB.GPO2" pin 0x18 GPIO with a pull setting of "PullDefault",
which leaves the pin floating.

This causes the ACPI button driver to cause spurious LID closed events,
causing the device to suspend while the user is using it. There is
nothing the ACPI button driver (or the gpio code) can do to fix this,
so the only solution is to add a DMI based blacklist and ignore the LID
device on these tablets.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/button.c