diff options
author | 2025-06-04 10:49:59 -0500 | |
---|---|---|
committer | 2025-06-04 10:49:59 -0500 | |
commit | bb5c909e6a5e37417e988147c705e4df64278b52 (patch) | |
tree | 88bbaf8297c8b49e491c94f7630e8df6602942f0 /include | |
parent | Merge branch 'pci/enumeration' (diff) | |
parent | PCI: hotplug: Drop superfluous #include directives (diff) | |
download | linux-rng-bb5c909e6a5e37417e988147c705e4df64278b52.tar.xz linux-rng-bb5c909e6a5e37417e988147c705e4df64278b52.zip |
Merge branch 'pci/hotplug'
- Ignore Presence Detect Changed caused by DPC. pciehp already ignores
Link Down/Up events caused by DPC, but on slots using in-band presence
detect, DPC causes a spurious Presence Detect Changed event (Lukas
Wunner)
- Ignore Link Down/Up caused by Secondary Bus Reset. On hotplug ports
using in-band presence detect, the reset causes a Presence Detect Changed
event, which mistakenly caused teardown and re-enumeration of the device.
Drivers may need to annotate code that resets their device (Lukas Wunner)
* pci/hotplug:
PCI: hotplug: Drop superfluous #include directives
PCI: pciehp: Ignore Link Down/Up caused by Secondary Bus Reset
PCI: pciehp: Ignore Presence Detect Changed caused by DPC
# Conflicts:
# drivers/pci/pci.h
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pci.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index d8a12aa896f7..b07e77637082 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1843,6 +1843,14 @@ static inline bool pcie_aspm_support_enabled(void) { return false; } static inline bool pcie_aspm_enabled(struct pci_dev *pdev) { return false; } #endif +#ifdef CONFIG_HOTPLUG_PCI +void pci_hp_ignore_link_change(struct pci_dev *pdev); +void pci_hp_unignore_link_change(struct pci_dev *pdev); +#else +static inline void pci_hp_ignore_link_change(struct pci_dev *pdev) { } +static inline void pci_hp_unignore_link_change(struct pci_dev *pdev) { } +#endif + #ifdef CONFIG_PCIEAER bool pci_aer_available(void); #else |