Skip to content

Commit 95d969e

Browse files
westeribjorn-helgaas
authored andcommitted
PCI: hotplug: Add hotplug_is_native()
Add hotplug_is_native() to find out whether the OS is supposed to handle native hotplug of a given bridge. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
1 parent 90cc0c3 commit 95d969e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/pci_hotplug.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,9 @@ static inline int acpi_get_hp_hw_control_from_firmware(struct pci_dev *bridge)
181181
static inline bool pciehp_is_native(struct pci_dev *bridge) { return true; }
182182
static inline bool shpchp_is_native(struct pci_dev *bridge) { return true; }
183183
#endif
184+
185+
static inline bool hotplug_is_native(struct pci_dev *bridge)
186+
{
187+
return pciehp_is_native(bridge) || shpchp_is_native(bridge);
188+
}
184189
#endif

0 commit comments

Comments
 (0)