--- zzzz-none-000/linux-5.4.213/include/linux/pci.h 2022-09-15 10:04:56.000000000 +0000 +++ miami-7690-761/linux-5.4.213/include/linux/pci.h 2024-05-29 11:20:02.000000000 +0000 @@ -310,6 +310,8 @@ #ifdef CONFIG_PCIEAER u16 aer_cap; /* AER capability offset */ struct aer_stats *aer_stats; /* AER stats for this device */ + struct notifier_block aer_panic_sw; /* AER notifier block for dumping the error history on panic */ + struct notifier_block aer_panic_regs; /* AER notifier block for dumping the AER registers on panic */ #endif u8 pcie_cap; /* PCIe capability offset */ u8 msi_cap; /* MSI capability offset */ @@ -2385,6 +2387,19 @@ void pci_uevent_ers(struct pci_dev *pdev, enum pci_ers_result err_type); #endif +#ifdef CONFIG_PCIE_QCOM +int pcie_set_link_speed(struct pci_dev *dev, u16 target_link_speed); +int pcie_set_link_width(struct pci_dev *dev, u16 target_link_width); +#else +static inline int pcie_set_link_speed(struct pci_dev *dev, u16 target_link_speed) +{ + return -ENODEV; +} +static inline int pcie_set_link_width(struct pci_dev *dev, u16 target_link_width) +{ + return -ENODEV; +} +#endif /* Provide the legacy pci_dma_* API */ #include