Skip to content

Commit 13f05fb

Browse files
committed
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
2 parents 6b872a5 + dd183e3 commit 13f05fb

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

drivers/acpi/acpi_pcc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* Arbitrary retries in case the remote processor is slow to respond
2828
* to PCC commands
2929
*/
30-
#define PCC_CMD_WAIT_RETRIES_NUM 500
30+
#define PCC_CMD_WAIT_RETRIES_NUM 500ULL
3131

3232
struct pcc_data {
3333
struct pcc_mbox_chan *pcc_chan;

drivers/acpi/resource.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,13 @@ static const struct dmi_system_id asus_laptop[] = {
425425
DMI_MATCH(DMI_BOARD_NAME, "S5402ZA"),
426426
},
427427
},
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+
},
428435
{ }
429436
};
430437

drivers/acpi/scan.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,7 @@ static bool acpi_info_matches_ids(struct acpi_device_info *info,
789789
static const char * const acpi_ignore_dep_ids[] = {
790790
"PNP0D80", /* Windows-compatible System Power Management Controller */
791791
"INT33BD", /* Intel Baytrail Mailbox Device */
792+
"LATT2021", /* Lattice FW Update Client Driver */
792793
NULL
793794
};
794795

drivers/base/property.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ EXPORT_SYMBOL_GPL(device_property_read_string);
229229
* Find a given string in a string array and if it is found return the
230230
* index back.
231231
*
232-
* Return: %0 if the property was found (success),
232+
* Return: index, starting from %0, if the property was found (success),
233233
* %-EINVAL if given arguments are not valid,
234234
* %-ENODATA if the property does not have a value,
235235
* %-EPROTO if the property is not an array of strings,
@@ -450,7 +450,7 @@ EXPORT_SYMBOL_GPL(fwnode_property_read_string);
450450
* Find a given string in a string array and if it is found return the
451451
* index back.
452452
*
453-
* Return: %0 if the property was found (success),
453+
* Return: index, starting from %0, if the property was found (success),
454454
* %-EINVAL if given arguments are not valid,
455455
* %-ENODATA if the property does not have a value,
456456
* %-EPROTO if the property is not an array of strings,

0 commit comments

Comments
 (0)