diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-06 22:35:13 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-06 22:35:13 -0400 |
| commit | 59df1c2bdecb0d1aaadfb8533df4bea528ee4952 (patch) | |
| tree | ded1e05c84622331dd6a61b24db31e9b920f6970 /drivers/acpi/tables.c | |
| parent | c620f7bd0ba5c882b3e7fc199a8d5c2f6c2f5263 (diff) | |
| parent | 10b4768b27a0b8f9459570723ecb1809f4d707e0 (diff) | |
Merge tag 'acpi-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull ACPI updates from Rafael Wysocki:
"These rearrange the ACPI documentation by converting it to the .rst
format and splitting it into clear categories (admin guide, driver
API, firmware guide), switch over multiple users of a problematic
library function to a new better one, update the ACPICA code in the
kernel to a new upstream release, fix a few issues, improve power
device management diagnostics and do some cleanups.
Specifics:
- Convert the ACPI documentation in the kernel source tree to the
.rst format and split it into the admin guide, driver API and
firmware guide parts (Changbin Du).
- Add a PRP0001 usage example to the ACPI documentation (Thomas
Preston).
- Switch over the users of the acpi_dev_get_first_match_name()
library function which turned out to be problematic to a new,
better one called acpi_dev_get_first_match_dev() (Andy Shevchenko,
YueHaibing).
- Update the ACPICA code in the kernel to upstream release 20190405
including:
* Null pointer dereference check in acpi_ns_delete_node() (Erik
Schmauss).
* Multiple macro and function name changes (Bob Moore).
* Predefined operation region name fix (Erik Schmauss).
- Fix hibernation issue on systems using the Baytrail and Cherrytrail
Intel SoCs introduced during the 4.20 development cycle (Hans de
Goede).
- Add Sony VPCEH3U1E to the backlight quirk list (Zhang Rui).
- Fix button handling during system resume (Zhang Rui).
- Add a device PM diagnostic message (Rafael Wysocki).
- Clean up the code, comments and white space in multiple places
(Bjorn Helgaas, Gustavo Silva, Kefeng Wang)"
* tag 'acpi-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (53 commits)
Documentation: ACPI: move video_extension.txt to firmware-guide/acpi and convert to reST
Documentation: ACPI: move ssdt-overlays.txt to admin-guide/acpi and convert to reST
Documentation: ACPI: move lpit.txt to firmware-guide/acpi and convert to reST
Documentation: ACPI: move cppc_sysfs.txt to admin-guide/acpi and convert to reST
Documentation: ACPI: move apei/einj.txt to firmware-guide/acpi and convert to reST
Documentation: ACPI: move apei/output_format.txt to firmware-guide/acpi and convert to reST
Documentation: ACPI: move aml-debugger.txt to firmware-guide/acpi and convert to reST
Documentation: ACPI: move method-tracing.txt to firmware-guide/acpi and convert to rsST
Documentation: ACPI: move debug.txt to firmware-guide/acpi and convert to reST
Documentation: ACPI: move dsd/data-node-references.txt to firmware-guide/acpi and convert to reST
Documentation: ACPI: move dsd/graph.txt to firmware-guide/acpi and convert to reST
Documentation: ACPI: move acpi-lid.txt to firmware-guide/acpi and convert to reST
Documentation: ACPI: move i2c-muxes.txt to firmware-guide/acpi and convert to reST
Documentation: ACPI: move dsdt-override.txt to admin-guide/acpi and convert to reST
Documentation: ACPI: move initrd_table_override.txt to admin-guide/acpi and convert to reST
Documentation: ACPI: move method-customizing.txt to firmware-guide/acpi and convert to reST
Documentation: ACPI: move gpio-properties.txt to firmware-guide/acpi and convert to reST
Documentation: ACPI: move DSD-properties-rules.txt to firmware-guide/acpi and covert to reST
Documentation: ACPI: move scan_handlers.txt to driver-api/acpi and convert to reST
Documentation: ACPI: move linuxized-acpica.txt to driver-api/acpi and convert to reST
...
Diffstat (limited to 'drivers/acpi/tables.c')
| -rw-r--r-- | drivers/acpi/tables.c | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c index 8fccbe49612a..d7bf936b1646 100644 --- a/drivers/acpi/tables.c +++ b/drivers/acpi/tables.c | |||
| @@ -240,8 +240,7 @@ void acpi_table_print_madt_entry(struct acpi_subtable_header *header) | |||
| 240 | * On success returns sum of all matching entries for all proc handlers. | 240 | * On success returns sum of all matching entries for all proc handlers. |
| 241 | * Otherwise, -ENODEV or -EINVAL is returned. | 241 | * Otherwise, -ENODEV or -EINVAL is returned. |
| 242 | */ | 242 | */ |
| 243 | static int __init | 243 | static int __init acpi_parse_entries_array(char *id, unsigned long table_size, |
| 244 | acpi_parse_entries_array(char *id, unsigned long table_size, | ||
| 245 | struct acpi_table_header *table_header, | 244 | struct acpi_table_header *table_header, |
| 246 | struct acpi_subtable_proc *proc, int proc_num, | 245 | struct acpi_subtable_proc *proc, int proc_num, |
| 247 | unsigned int max_entries) | 246 | unsigned int max_entries) |
| @@ -314,8 +313,7 @@ acpi_parse_entries_array(char *id, unsigned long table_size, | |||
| 314 | return errs ? -EINVAL : count; | 313 | return errs ? -EINVAL : count; |
| 315 | } | 314 | } |
| 316 | 315 | ||
| 317 | int __init | 316 | int __init acpi_table_parse_entries_array(char *id, |
| 318 | acpi_table_parse_entries_array(char *id, | ||
| 319 | unsigned long table_size, | 317 | unsigned long table_size, |
| 320 | struct acpi_subtable_proc *proc, int proc_num, | 318 | struct acpi_subtable_proc *proc, int proc_num, |
| 321 | unsigned int max_entries) | 319 | unsigned int max_entries) |
| @@ -346,8 +344,7 @@ acpi_table_parse_entries_array(char *id, | |||
| 346 | return count; | 344 | return count; |
| 347 | } | 345 | } |
| 348 | 346 | ||
| 349 | int __init | 347 | int __init acpi_table_parse_entries(char *id, |
| 350 | acpi_table_parse_entries(char *id, | ||
| 351 | unsigned long table_size, | 348 | unsigned long table_size, |
| 352 | int entry_id, | 349 | int entry_id, |
| 353 | acpi_tbl_entry_handler handler, | 350 | acpi_tbl_entry_handler handler, |
| @@ -362,8 +359,7 @@ acpi_table_parse_entries(char *id, | |||
| 362 | max_entries); | 359 | max_entries); |
| 363 | } | 360 | } |
| 364 | 361 | ||
| 365 | int __init | 362 | int __init acpi_table_parse_madt(enum acpi_madt_type id, |
| 366 | acpi_table_parse_madt(enum acpi_madt_type id, | ||
| 367 | acpi_tbl_entry_handler handler, unsigned int max_entries) | 363 | acpi_tbl_entry_handler handler, unsigned int max_entries) |
| 368 | { | 364 | { |
| 369 | return acpi_table_parse_entries(ACPI_SIG_MADT, | 365 | return acpi_table_parse_entries(ACPI_SIG_MADT, |
| @@ -670,8 +666,8 @@ static void __init acpi_table_initrd_scan(void) | |||
| 670 | table_length = table->length; | 666 | table_length = table->length; |
| 671 | 667 | ||
| 672 | /* Skip RSDT/XSDT which should only be used for override */ | 668 | /* Skip RSDT/XSDT which should only be used for override */ |
| 673 | if (ACPI_COMPARE_NAME(table->signature, ACPI_SIG_RSDT) || | 669 | if (ACPI_COMPARE_NAMESEG(table->signature, ACPI_SIG_RSDT) || |
| 674 | ACPI_COMPARE_NAME(table->signature, ACPI_SIG_XSDT)) { | 670 | ACPI_COMPARE_NAMESEG(table->signature, ACPI_SIG_XSDT)) { |
| 675 | acpi_os_unmap_memory(table, ACPI_HEADER_SIZE); | 671 | acpi_os_unmap_memory(table, ACPI_HEADER_SIZE); |
| 676 | goto next_table; | 672 | goto next_table; |
| 677 | } | 673 | } |
| @@ -725,8 +721,7 @@ static void *amlcode __attribute__ ((weakref("AmlCode"))); | |||
| 725 | static void *dsdt_amlcode __attribute__ ((weakref("dsdt_aml_code"))); | 721 | static void *dsdt_amlcode __attribute__ ((weakref("dsdt_aml_code"))); |
| 726 | #endif | 722 | #endif |
| 727 | 723 | ||
| 728 | acpi_status | 724 | acpi_status acpi_os_table_override(struct acpi_table_header *existing_table, |
| 729 | acpi_os_table_override(struct acpi_table_header *existing_table, | ||
| 730 | struct acpi_table_header **new_table) | 725 | struct acpi_table_header **new_table) |
| 731 | { | 726 | { |
| 732 | if (!existing_table || !new_table) | 727 | if (!existing_table || !new_table) |
| @@ -788,7 +783,6 @@ static int __init acpi_parse_apic_instance(char *str) | |||
| 788 | 783 | ||
| 789 | return 0; | 784 | return 0; |
| 790 | } | 785 | } |
| 791 | |||
| 792 | early_param("acpi_apic_instance", acpi_parse_apic_instance); | 786 | early_param("acpi_apic_instance", acpi_parse_apic_instance); |
| 793 | 787 | ||
| 794 | static int __init acpi_force_table_verification_setup(char *s) | 788 | static int __init acpi_force_table_verification_setup(char *s) |
| @@ -797,7 +791,6 @@ static int __init acpi_force_table_verification_setup(char *s) | |||
| 797 | 791 | ||
| 798 | return 0; | 792 | return 0; |
| 799 | } | 793 | } |
| 800 | |||
| 801 | early_param("acpi_force_table_verification", acpi_force_table_verification_setup); | 794 | early_param("acpi_force_table_verification", acpi_force_table_verification_setup); |
| 802 | 795 | ||
| 803 | static int __init acpi_force_32bit_fadt_addr(char *s) | 796 | static int __init acpi_force_32bit_fadt_addr(char *s) |
| @@ -807,5 +800,4 @@ static int __init acpi_force_32bit_fadt_addr(char *s) | |||
| 807 | 800 | ||
| 808 | return 0; | 801 | return 0; |
| 809 | } | 802 | } |
| 810 | |||
| 811 | early_param("acpi_force_32bit_fadt_addr", acpi_force_32bit_fadt_addr); | 803 | early_param("acpi_force_32bit_fadt_addr", acpi_force_32bit_fadt_addr); |
