Commit 3382bfbca58c for kernel

commit 3382bfbca58c7d5ee3f31a7b37fbeb208e98e656
Merge: 502d45774af0 ea10c0b334e0
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Wed Aug 26 14:06:08 2026 -0700

    Merge tag 'acpi-7.3-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

    Pull more ACPI support updates from Rafael Wysocki:
     "These update documentation to reflect recent changes in the upstream
      ACPICA project, fix issues in the core ACPI device enumeration code
      (one of which has been introduced recently), improve the primary
      "physical" device lookup for ACPI device objects in that code, and
      update ACPI device drivers:

       - Update MAINTAINERS, CREDITS and ACPI subsystem documentation to
         reflect recent changes in the upstream ACPICA project (Rafael
         Wysocki)

       - Prevent the core ACPI enumeration code from combining device
         resources that overlap completely in order to avoid resource
         conflicts during platform device registration because there are
         drivers that expect such resources to be present (Rafael Wysocki)

       - Defer device power initialization during ACPI-based device
         enumeration to the point when the given device is known to be
         present and functional and all of its dependencies have been met
         (Peixin Xie)

       - Fix bus ID cleanup on device_add() failures during ACPI device
         object registration (Hongyan Xu)

       - Introduce a new helper function for looking up the primary
         "physical" device for a given ACPI device object and update the
         core ACPI device enumeration code to use that function (Rafael
         Wysocki)

       - Protect all battery properties with a separated mutex in the ACPI
         battery driver to prevent race conditions from occurring and avoid
         evaluating the _BST ACPI control method multiple times in parallel
         for the same battery device (Rong Zhang)

       - Add DMI quirk for the Razer Blade Pro 17 early 2020 lid switch to
         the ACPI button driver (Robin Everaars)

       - Convert fixed clock rates in the ACPI driver for AMD SoCs (APD) to
         use HZ_PER_MHZ and add a clock frequency for the HJMC01 I2C
         controller to it (Hongnan Li and Xiangyang Yu)

       - Fix a stack buffer overflow in query_capability() in the ACPI
         platform firmware runtime update driver (Anirudh Prasad)"

    * tag 'acpi-7.3-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
      ACPI: button: Add DMI quirk for Razer Blade Pro 17 early 2020 lid switch
      ACPI: scan: Do not combine resources that overlap completely
      ACPI: Update upstream ACPICA repository URL in documentation
      ACPI: Update MAINTAINERS entry for ACPICA
      ACPI: Add Bob Moore to CREDITS
      ACPI: pfr_update: fix stack buffer overflow in query_capability()
      ACPI: scan: Defer device power initialization
      ACPI: APD: Add clock frequency for HJMC01 I2C controller
      ACPI: APD: Convert fixed clock rates to use HZ_PER_MHZ
      ACPI: scan: Use acpi_bus_get_primary_device()
      ACPI: platform: Use acpi_bus_get_primary_device()
      ACPI: bus: Introduce acpi_bus_get_primary_device()
      ACPI: scan: fix bus ID cleanup on device_add() failures
      ACPI: battery: Protect all properties with a separated mutex

diff --cc include/acpi/acpi_bus.h
index ec3e143caabe,eaf13f6ac2d3..1a45e0d521d8
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@@ -948,6 -953,18 +949,11 @@@ int acpi_scan_add_dep(acpi_handle handl
  u32 arch_acpi_add_auto_dep(acpi_handle handle);
  #else	/* CONFIG_ACPI */

+ static inline struct device *acpi_bus_get_primary_device(struct acpi_device *adev)
+ {
+ 	return NULL;
+ }
+
 -static inline bool acpi_of_match_device(const struct acpi_device *adev,
 -					const struct of_device_id *of_match_table,
 -					const struct of_device_id **of_id)
 -{
 -	return false;
 -}
 -
  static inline int register_acpi_bus_type(void *bus) { return 0; }
  static inline int unregister_acpi_bus_type(void *bus) { return 0; }