]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
ACPI: button: Add DMI quirk for Medion Akoya E2215T
authorHans de Goede <hdegoede@redhat.com>
Sat, 26 Oct 2019 20:24:34 +0000 (22:24 +0200)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 04:58:30 +0000 (23:58 -0500)
commit7e31f522253ee3a71357e3455776debf29dc6c24
tree83a00220746b498b2a04ee1259264b7aa311f68b
parent4b39a0ceed9053ea07b19908aca7aa2a6c6b22cd
ACPI: button: Add DMI quirk for Medion Akoya E2215T

BugLink: https://bugs.launchpad.net/bugs/1860490
[ Upstream commit 932e1ba486117de2fcea3df27ad8218ad6c11470 ]

The Medion Akoya E2215T's ACPI _LID implementation is quite broken:

 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.

This commit adds a DMI quirk for this.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/acpi/button.c