Merge branch 'pci/pm'
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 4 Jun 2025 15:50:01 +0000 (10:50 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 4 Jun 2025 15:50:01 +0000 (10:50 -0500)
commitf377d9cb2579843219f9f1c4a74ed1c3d1967859
tree868eba401fa7123be35d5d0e1f23c85068d27ea8
parent80fe18d1de6b90351834fbe06314602120ee646a
parent4d4c10f763d7808fbade28d83d237411603bca05
Merge branch 'pci/pm'

- Add pm_runtime_put() cleanup helper for use with __free() to
  automatically drop the device usage count when a pointer goes out of
  scope (Alex Williamson)

- Increment PM usage counter when probing reset methods so we don't try to
  read config space of a powered-off device (Alex Williamson)

- Set all devices to D0 during enumeration to ensure ACPI opregion is
  connected via _REG (Mario Limonciello)

* pci/pm:
  PCI: Explicitly put devices into D0 when initializing
  PCI: Increment PM usage counter when probing reset methods
  PM: runtime: Define pm_runtime_put cleanup helper
drivers/pci/pci-driver.c
drivers/pci/pci-sysfs.c
drivers/pci/pci.c
drivers/pci/pci.h