Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'acpi-6.1-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull ACPI and device properties fixes from Rafael Wysocki:
"These fix device properties documentation and the ACPI PCC code, add a
new IRQ override quirk for resource handling and add one more item to
the list of device IDs to be ignored when returned by _DEP.

Specifics:

- Fix the documentation of the *_match_string() family of functions
to properly cover the return value (Andy Shevchenko)

- Fix a possible integer overflow during multiplication in the ACPI
PCC code (Manank Patel)

- Make the ACPI device resources code skip IRQ override on Asus
Vivobook S5602ZA (Tamim Khan)

- Add LATT2021 to the list of device IDs that are ignored when
returned by _DEP, because there are no drivers for them in the
kernel and no plans to add such drivers (Hans de Goede)"

* tag 'acpi-6.1-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
ACPI: scan: Add LATT2021 to acpi_ignore_dep_ids[]
ACPI: resource: Skip IRQ override on Asus Vivobook S5602ZA
ACPI: PCC: Fix unintentional integer overflow
device property: Fix documentation for *_match_string() APIs

+11 -3
+1 -1
drivers/acpi/acpi_pcc.c
··· 27 27 * Arbitrary retries in case the remote processor is slow to respond 28 28 * to PCC commands 29 29 */ 30 - #define PCC_CMD_WAIT_RETRIES_NUM 500 30 + #define PCC_CMD_WAIT_RETRIES_NUM 500ULL 31 31 32 32 struct pcc_data { 33 33 struct pcc_mbox_chan *pcc_chan;
+7
drivers/acpi/resource.c
··· 425 425 DMI_MATCH(DMI_BOARD_NAME, "S5402ZA"), 426 426 }, 427 427 }, 428 + { 429 + .ident = "Asus Vivobook S5602ZA", 430 + .matches = { 431 + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), 432 + DMI_MATCH(DMI_BOARD_NAME, "S5602ZA"), 433 + }, 434 + }, 428 435 { } 429 436 }; 430 437
+1
drivers/acpi/scan.c
··· 789 789 static const char * const acpi_ignore_dep_ids[] = { 790 790 "PNP0D80", /* Windows-compatible System Power Management Controller */ 791 791 "INT33BD", /* Intel Baytrail Mailbox Device */ 792 + "LATT2021", /* Lattice FW Update Client Driver */ 792 793 NULL 793 794 }; 794 795
+2 -2
drivers/base/property.c
··· 229 229 * Find a given string in a string array and if it is found return the 230 230 * index back. 231 231 * 232 - * Return: %0 if the property was found (success), 232 + * Return: index, starting from %0, if the property was found (success), 233 233 * %-EINVAL if given arguments are not valid, 234 234 * %-ENODATA if the property does not have a value, 235 235 * %-EPROTO if the property is not an array of strings, ··· 450 450 * Find a given string in a string array and if it is found return the 451 451 * index back. 452 452 * 453 - * Return: %0 if the property was found (success), 453 + * Return: index, starting from %0, if the property was found (success), 454 454 * %-EINVAL if given arguments are not valid, 455 455 * %-ENODATA if the property does not have a value, 456 456 * %-EPROTO if the property is not an array of strings,