aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-12-07 17:14:35 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2012-12-07 17:14:35 -0500
commit1a14f30b36e5d20a2a1be24888c2158541d97bab (patch)
tree790531441ea86f7873d3d2874f33eeb5c1f2e938 /drivers/acpi
parent583bdc59820692eead7868e816d08bee4c55c1c6 (diff)
parentcdc87c5a30f407ed1ce43d8a22261116873d5ef1 (diff)
Merge branch 'acpi-general'
* acpi-general: pnpacpi: fix incorrect TEST_ALPHA() test ACPI / video: ignore BIOS initial backlight value for HP Folio 13-2000 ACPI : do not use Lid and Sleep button for S5 wakeup
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/scan.c7
-rw-r--r--drivers/acpi/video.c14
2 files changed, 20 insertions, 1 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 8ee379ef309a..53502d1bbf26 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -968,8 +968,8 @@ acpi_bus_extract_wakeup_device_power_package(acpi_handle handle,
968static void acpi_bus_set_run_wake_flags(struct acpi_device *device) 968static void acpi_bus_set_run_wake_flags(struct acpi_device *device)
969{ 969{
970 struct acpi_device_id button_device_ids[] = { 970 struct acpi_device_id button_device_ids[] = {
971 {"PNP0C0D", 0},
972 {"PNP0C0C", 0}, 971 {"PNP0C0C", 0},
972 {"PNP0C0D", 0},
973 {"PNP0C0E", 0}, 973 {"PNP0C0E", 0},
974 {"", 0}, 974 {"", 0},
975 }; 975 };
@@ -981,6 +981,11 @@ static void acpi_bus_set_run_wake_flags(struct acpi_device *device)
981 /* Power button, Lid switch always enable wakeup */ 981 /* Power button, Lid switch always enable wakeup */
982 if (!acpi_match_device_ids(device, button_device_ids)) { 982 if (!acpi_match_device_ids(device, button_device_ids)) {
983 device->wakeup.flags.run_wake = 1; 983 device->wakeup.flags.run_wake = 1;
984 if (!acpi_match_device_ids(device, &button_device_ids[1])) {
985 /* Do not use Lid/sleep button for S5 wakeup */
986 if (device->wakeup.sleep_state == ACPI_STATE_S5)
987 device->wakeup.sleep_state = ACPI_STATE_S4;
988 }
984 device_set_wakeup_capable(&device->dev, true); 989 device_set_wakeup_capable(&device->dev, true);
985 return; 990 return;
986 } 991 }
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index 0230cb6cbb3a..ac9a69cd45f5 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -389,6 +389,12 @@ static int __init video_set_bqc_offset(const struct dmi_system_id *d)
389 return 0; 389 return 0;
390} 390}
391 391
392static int video_ignore_initial_backlight(const struct dmi_system_id *d)
393{
394 use_bios_initial_backlight = 0;
395 return 0;
396}
397
392static struct dmi_system_id video_dmi_table[] __initdata = { 398static struct dmi_system_id video_dmi_table[] __initdata = {
393 /* 399 /*
394 * Broken _BQC workaround http://bugzilla.kernel.org/show_bug.cgi?id=13121 400 * Broken _BQC workaround http://bugzilla.kernel.org/show_bug.cgi?id=13121
@@ -433,6 +439,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
433 DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 7720"), 439 DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 7720"),
434 }, 440 },
435 }, 441 },
442 {
443 .callback = video_ignore_initial_backlight,
444 .ident = "HP Folio 13-2000",
445 .matches = {
446 DMI_MATCH(DMI_BOARD_VENDOR, "Hewlett-Packard"),
447 DMI_MATCH(DMI_PRODUCT_NAME, "HP Folio 13 - 2000 Notebook PC"),
448 },
449 },
436 {} 450 {}
437}; 451};
438 452