diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-08-30 08:13:50 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-08-30 08:13:50 -0400 |
commit | da48afb26b40ebb5d6b0e84793e0662859c7ea20 (patch) | |
tree | 1c85a4ebd412a8c5e05e6dcb6a64f1326f8f1dff /drivers/acpi | |
parent | 7a330a5416de9240c93a6987e11cb32b581d3263 (diff) | |
parent | 524f42fab787a9510be826ce3d736b56d454ac6d (diff) |
Merge branch 'acpi-assorted'
* acpi-assorted:
ACPI / EC: Add ASUSTEK L4R to quirk list in order to validate ECDT
ACPI / thermal: Add check of "_TZD" availability and evaluating result
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/ec.c | 4 | ||||
-rw-r--r-- | drivers/acpi/thermal.c | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 8dd2d4dce7c3..a06d98374705 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c | |||
@@ -987,6 +987,10 @@ static struct dmi_system_id ec_dmi_table[] __initdata = { | |||
987 | ec_skip_dsdt_scan, "HP Folio 13", { | 987 | ec_skip_dsdt_scan, "HP Folio 13", { |
988 | DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), | 988 | DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), |
989 | DMI_MATCH(DMI_PRODUCT_NAME, "HP Folio 13"),}, NULL}, | 989 | DMI_MATCH(DMI_PRODUCT_NAME, "HP Folio 13"),}, NULL}, |
990 | { | ||
991 | ec_validate_ecdt, "ASUS hardware", { | ||
992 | DMI_MATCH(DMI_SYS_VENDOR, "ASUSTek Computer Inc."), | ||
993 | DMI_MATCH(DMI_PRODUCT_NAME, "L4R"),}, NULL}, | ||
990 | {}, | 994 | {}, |
991 | }; | 995 | }; |
992 | 996 | ||
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 9063239e0b13..6a0329340b42 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c | |||
@@ -475,14 +475,14 @@ static int acpi_thermal_trips_update(struct acpi_thermal *tz, int flag) | |||
475 | break; | 475 | break; |
476 | } | 476 | } |
477 | 477 | ||
478 | if (flag & ACPI_TRIPS_DEVICES) { | 478 | if ((flag & ACPI_TRIPS_DEVICES) |
479 | memset(&devices, 0, sizeof(struct acpi_handle_list)); | 479 | && acpi_has_method(tz->device->handle, "_TZD")) { |
480 | memset(&devices, 0, sizeof(devices)); | ||
480 | status = acpi_evaluate_reference(tz->device->handle, "_TZD", | 481 | status = acpi_evaluate_reference(tz->device->handle, "_TZD", |
481 | NULL, &devices); | 482 | NULL, &devices); |
482 | if (memcmp(&tz->devices, &devices, | 483 | if (ACPI_SUCCESS(status) |
483 | sizeof(struct acpi_handle_list))) { | 484 | && memcmp(&tz->devices, &devices, sizeof(devices))) { |
484 | memcpy(&tz->devices, &devices, | 485 | tz->devices = devices; |
485 | sizeof(struct acpi_handle_list)); | ||
486 | ACPI_THERMAL_TRIPS_EXCEPTION(flag, "device"); | 486 | ACPI_THERMAL_TRIPS_EXCEPTION(flag, "device"); |
487 | } | 487 | } |
488 | } | 488 | } |