Merge branches 'acpi-numa', 'acpi-misc' and 'pnp'

Merge and ACPI support update related to NUMA, miscellaneous updates
related to ACPI support, and PNP updates for 7.3-rc1:

 - Remove a node_set() call that is redundant from
   acpi_parse_memory_affinity() (Sang-Heon Jeon)

 - Prevent kernel-doc warnings by converting 2 function description
   comments to kernel-doc format (Randy Dunlap)

 - Fix docs build error in the ACPI admin-guide documentation (Randy
   Dunlap)

 - Replace __get_free_page() with kmalloc() in the code handling ACPI
   NVS memory during system suspend/resume (Mike Rapoport)

 - Fix card device cleanup on registration failure in the core PNP
   code (Yuho Choi)

 - Dropi an unused assignment of pnp_device_id driver data (Uwe
   Kleine-König)

* acpi-numa:
  ACPI: NUMA: remove redundant node_set() call

* acpi-misc:
  ACPI: pmtmr: Convert to kernel-doc format
  docs: ACPI: DSD: motorcomm: fix docs build error
  ACPI: NVS: replace __get_free_page() with kmalloc()

* pnp:
  PNP: Fix card device cleanup on registration failure
  PNP: Drop unused assignment of pnp_device_id driver data
This commit is contained in:
Rafael J. Wysocki
2026-08-07 20:01:31 +02:00
6 changed files with 23 additions and 15 deletions
@@ -64,9 +64,10 @@ defaults as [motorcomm-yt8xxx]_.
Enables adjustments related to ``motorcomm,tx-clk-*-inverted`` usage; see
[motorcomm-yt8xxx]_.
``motorcomm,tx-clk-10-inverted`` (boolean, optional)
``motorcomm,tx-clk-100-inverted`` (boolean, optional)
``motorcomm,tx-clk-10-inverted`` (boolean, optional),
``motorcomm,tx-clk-100-inverted`` (boolean, optional),
``motorcomm,tx-clk-1000-inverted`` (boolean, optional)
Per-speed TX clock inversion options; see [motorcomm-yt8xxx]_.
ASL example (illustrative)
-2
View File
@@ -399,8 +399,6 @@ acpi_parse_memory_affinity(union acpi_subtable_headers *header,
goto out_err_bad_srat;
}
node_set(node, numa_nodes_parsed);
pr_info("SRAT: Node %u PXM %u [mem %#010Lx-%#010Lx]%s%s\n",
node, pxm,
(unsigned long long) start, (unsigned long long) end - 1,
+2 -2
View File
@@ -133,7 +133,7 @@ void suspend_nvs_free(void)
list_for_each_entry(entry, &nvs_list, node)
if (entry->data) {
free_page((unsigned long)entry->data);
kfree(entry->data);
entry->data = NULL;
if (entry->kaddr) {
if (entry->unmap) {
@@ -156,7 +156,7 @@ int suspend_nvs_alloc(void)
struct nvs_page *entry;
list_for_each_entry(entry, &nvs_list, node) {
entry->data = (void *)__get_free_page(GFP_KERNEL);
entry->data = kmalloc(PAGE_SIZE, GFP_KERNEL);
if (!entry->data) {
suspend_nvs_free();
return -ENOMEM;
+9 -2
View File
@@ -254,9 +254,16 @@ int pnp_add_card(struct pnp_card *card)
/* we wait until now to add devices in order to ensure the drivers
* will be able to use all of the related devices on the card
* without waiting an unreasonable length of time */
list_for_each(pos, &card->devices) {
list_for_each_safe(pos, temp, &card->devices) {
struct pnp_dev *dev = card_to_pnp_dev(pos);
__pnp_add_device(dev);
error = __pnp_add_device(dev);
if (error) {
mutex_lock(&pnp_lock);
list_del(&dev->card_list);
dev->card = NULL;
mutex_unlock(&pnp_lock);
put_device(&dev->dev);
}
}
/* match with card drivers */
+3 -3
View File
@@ -17,10 +17,10 @@
static const struct pnp_device_id pnp_dev_table[] = {
/* General ID for reserving resources */
{"PNP0c02", 0},
{ .id = "PNP0c02" },
/* memory controller */
{"PNP0c01", 0},
{"", 0}
{ .id = "PNP0c01" },
{ }
};
static void reserve_range(struct pnp_dev *dev, struct resource *r, int port)
+6 -4
View File
@@ -27,15 +27,17 @@ static inline u32 acpi_pm_read_early(void)
}
/**
* Register callback for suspend and resume event
* acpi_pmtmr_register_suspend_resume_callback - Register callback for
* suspend and resume event
*
* @cb Callback triggered on suspend and resume
* @data Data passed with the callback
* @cb: Callback triggered on suspend and resume
* @data: Data passed with the callback
*/
void acpi_pmtmr_register_suspend_resume_callback(void (*cb)(void *data, bool suspend), void *data);
/**
* Remove registered callback for suspend and resume event
* acpi_pmtmr_unregister_suspend_resume_callback - Remove registered callback
* for suspend and resume event
*/
void acpi_pmtmr_unregister_suspend_resume_callback(void);