diff options
| author | Bjorn Helgaas <bhelgaas@google.com> | 2025-06-04 18:49:59 +0300 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2025-06-04 18:49:59 +0300 |
| commit | bb5c909e6a5e37417e988147c705e4df64278b52 (patch) | |
| tree | 88bbaf8297c8b49e491c94f7630e8df6602942f0 /include/linux | |
| parent | 68d0370e4e80ac6ab9043813f7ade3c810648679 (diff) | |
| parent | d46b3918fac499f60b7df1cb1437af7344480576 (diff) | |
| download | linux-bb5c909e6a5e37417e988147c705e4df64278b52.tar.xz | |
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/linux')
| -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 |
