]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ACPI / x86: Allow matching always_present_id array entries by DMI
authorHans de Goede <hdegoede@redhat.com>
Sun, 9 Jul 2017 19:05:12 +0000 (21:05 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 12 Jul 2017 11:26:08 +0000 (13:26 +0200)
commit3b6a70be5ac81673af1ca8b4dae84743cb9fcc87
treebf72bfd7f3793c116923bfd199723cfa5c300799
parent6f7da290413ba713f0cdd9ff1a2a9bb129ef4f6c
ACPI / x86: Allow matching always_present_id array entries by DMI

On some x86 systems the DSDT hides APCI devices to work around Windows
driver bugs. On one such system the device is even hidden until a certain
time after _SB.PCI0.GFX0.LCD.LCD1._ON gets called has passed *and*
_STA has been called at least 3 times since. TL;DR: it is a mess.

Until now the always_present_id matching was used to force status
for a whole class of devices, e.g. always enable PWM1 on CHerry Trail
devices.

This commit extends the always_present_id matching code to optionally
also check for a DMI match so that we can also add system specific
quirks to the always_present_id array.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/x86/utils.c