]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPI: button: Add DMI quirk for Medion Akoya E2228T
authorHans de Goede <hdegoede@redhat.com>
Sat, 7 Nov 2020 13:32:54 +0000 (14:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2020 12:27:19 +0000 (13:27 +0100)
commit2e22375d80bebc8ea9aa930c047da93adb8d2390
tree362cde6ad024da67da81c5a37d26e044829fcfec
parent496b92f27f1fa5be414a6f537c3afff7afdb006d
ACPI: button: Add DMI quirk for Medion Akoya E2228T

[ Upstream commit 7daaa06357bf7f1874b62bb1ea9d66a51d4e567e ]

The Medion Akoya E2228T's ACPI _LID implementation is quite broken,
it has the same issues as the one from the Medion Akoya E2215T:

1. For notifications it uses an ActiveLow Edge GpioInt, rather then
   an ActiveBoth one, meaning that the device is only notified when the
   lid is closed, not when it is opened.

2. Matching with this its _LID method simply always returns 0 (closed)

In order for the Linux LID code to work properly with this implementation,
the lid_init_state selection needs to be set to ACPI_BUTTON_LID_INIT_OPEN,
add a DMI quirk for this.

While working on this I also found out that the MD60### part of the model
number differs per country/batch while all of the E2215T and E2228T models
have this issue, so also remove the " MD60198" part from the E2215T quirk.

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