lkml.org 
[lkml]   [2022]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.15 513/846] ACPI / x86: Drop PWM2 device on Lenovo Yoga Book from always present table
    Date
    From: Hans de Goede <hdegoede@redhat.com>

    [ Upstream commit d431dfb764b145369be820fcdfd50f2159b9bbc2 ]

    It turns out that there is a WMI object which controls the PWM2 device
    used for the keyboard backlight and that WMI object also provides some
    other useful functionality.

    The upcoming lenovo-yogabook-wmi driver will offer both backlight
    control and the other functionality, so there no longer is a need
    to have the lpss-pwm driver binding to PWM2 for backlight control;
    and this is now actually undesirable because this will cause both
    the WMI code and the lpss-pwm driver to poke at the same PWM
    controller.

    Drop the always-present quirk for the PWM2 ACPI-device, so that the
    lpss-pwm controller will no longer bind to it.

    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/x86/utils.c | 4 ----
    1 file changed, 4 deletions(-)

    diff --git a/drivers/acpi/x86/utils.c b/drivers/acpi/x86/utils.c
    index f22f23933063b..3bcac98f6eca6 100644
    --- a/drivers/acpi/x86/utils.c
    +++ b/drivers/acpi/x86/utils.c
    @@ -54,10 +54,6 @@ static const struct always_present_id always_present_ids[] = {
    ENTRY("80860F09", "1", X86_MATCH(ATOM_SILVERMONT), {}),
    ENTRY("80862288", "1", X86_MATCH(ATOM_AIRMONT), {}),

    - /* Lenovo Yoga Book uses PWM2 for keyboard backlight control */
    - ENTRY("80862289", "2", X86_MATCH(ATOM_AIRMONT), {
    - DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X9"),
    - }),
    /*
    * The INT0002 device is necessary to clear wakeup interrupt sources
    * on Cherry Trail devices, without it we get nobody cared IRQ msgs.
    --
    2.34.1


    \
     
     \ /
      Last update: 2022-01-24 22:41    [W:4.631 / U:0.912 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site