diff options
| author | Bjorn Helgaas <bhelgaas@google.com> | 2017-04-28 11:34:19 -0400 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-04-28 11:34:19 -0400 |
| commit | c6a7a77cc4e62a2d9011f282ba69ffcafa7efdcc (patch) | |
| tree | 327a83452744e1afc4c0595c39252f6d4a413658 /include | |
| parent | 94f543b276e99ca311903f1b9fac2db6d1f020d7 (diff) | |
| parent | 4bb6669147d9037447baeb633deca8a64e1a55dd (diff) | |
Merge branch 'pci/msi' into next
* pci/msi:
PCI/MSI: Use dev_printk() when possible
of/pci: Remove unused MSI controller helpers
PCI: mvebu: Remove useless MSI enabling code
PCI: aardvark: Move to MSI handling using generic MSI support
PCI/MSI: Make pci_msi_shutdown() and pci_msix_shutdown() static
PCI/MSI: Stop disabling MSI/MSI-X in pci_device_shutdown()
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/of_pci.h | 11 | ||||
| -rw-r--r-- | include/linux/pci.h | 4 |
2 files changed, 0 insertions, 15 deletions
diff --git a/include/linux/of_pci.h b/include/linux/of_pci.h index 0e0974eceb80..518c8d20647a 100644 --- a/include/linux/of_pci.h +++ b/include/linux/of_pci.h | |||
| @@ -85,15 +85,4 @@ static inline int of_pci_get_host_bridge_resources(struct device_node *dev, | |||
| 85 | } | 85 | } |
| 86 | #endif | 86 | #endif |
| 87 | 87 | ||
| 88 | #if defined(CONFIG_OF) && defined(CONFIG_PCI_MSI) | ||
| 89 | int of_pci_msi_chip_add(struct msi_controller *chip); | ||
| 90 | void of_pci_msi_chip_remove(struct msi_controller *chip); | ||
| 91 | struct msi_controller *of_pci_find_msi_chip_by_node(struct device_node *of_node); | ||
| 92 | #else | ||
| 93 | static inline int of_pci_msi_chip_add(struct msi_controller *chip) { return -EINVAL; } | ||
| 94 | static inline void of_pci_msi_chip_remove(struct msi_controller *chip) { } | ||
| 95 | static inline struct msi_controller * | ||
| 96 | of_pci_find_msi_chip_by_node(struct device_node *of_node) { return NULL; } | ||
| 97 | #endif | ||
| 98 | |||
| 99 | #endif | 88 | #endif |
diff --git a/include/linux/pci.h b/include/linux/pci.h index e9f0e991be80..d8ffed9cb1a5 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -1292,11 +1292,9 @@ struct msix_entry { | |||
| 1292 | 1292 | ||
| 1293 | #ifdef CONFIG_PCI_MSI | 1293 | #ifdef CONFIG_PCI_MSI |
| 1294 | int pci_msi_vec_count(struct pci_dev *dev); | 1294 | int pci_msi_vec_count(struct pci_dev *dev); |
| 1295 | void pci_msi_shutdown(struct pci_dev *dev); | ||
| 1296 | void pci_disable_msi(struct pci_dev *dev); | 1295 | void pci_disable_msi(struct pci_dev *dev); |
| 1297 | int pci_msix_vec_count(struct pci_dev *dev); | 1296 | int pci_msix_vec_count(struct pci_dev *dev); |
| 1298 | int pci_enable_msix(struct pci_dev *dev, struct msix_entry *entries, int nvec); | 1297 | int pci_enable_msix(struct pci_dev *dev, struct msix_entry *entries, int nvec); |
| 1299 | void pci_msix_shutdown(struct pci_dev *dev); | ||
| 1300 | void pci_disable_msix(struct pci_dev *dev); | 1298 | void pci_disable_msix(struct pci_dev *dev); |
| 1301 | void pci_restore_msi_state(struct pci_dev *dev); | 1299 | void pci_restore_msi_state(struct pci_dev *dev); |
| 1302 | int pci_msi_enabled(void); | 1300 | int pci_msi_enabled(void); |
| @@ -1322,13 +1320,11 @@ int pci_irq_get_node(struct pci_dev *pdev, int vec); | |||
| 1322 | 1320 | ||
| 1323 | #else | 1321 | #else |
| 1324 | static inline int pci_msi_vec_count(struct pci_dev *dev) { return -ENOSYS; } | 1322 | static inline int pci_msi_vec_count(struct pci_dev *dev) { return -ENOSYS; } |
| 1325 | static inline void pci_msi_shutdown(struct pci_dev *dev) { } | ||
| 1326 | static inline void pci_disable_msi(struct pci_dev *dev) { } | 1323 | static inline void pci_disable_msi(struct pci_dev *dev) { } |
| 1327 | static inline int pci_msix_vec_count(struct pci_dev *dev) { return -ENOSYS; } | 1324 | static inline int pci_msix_vec_count(struct pci_dev *dev) { return -ENOSYS; } |
| 1328 | static inline int pci_enable_msix(struct pci_dev *dev, | 1325 | static inline int pci_enable_msix(struct pci_dev *dev, |
| 1329 | struct msix_entry *entries, int nvec) | 1326 | struct msix_entry *entries, int nvec) |
| 1330 | { return -ENOSYS; } | 1327 | { return -ENOSYS; } |
| 1331 | static inline void pci_msix_shutdown(struct pci_dev *dev) { } | ||
| 1332 | static inline void pci_disable_msix(struct pci_dev *dev) { } | 1328 | static inline void pci_disable_msix(struct pci_dev *dev) { } |
| 1333 | static inline void pci_restore_msi_state(struct pci_dev *dev) { } | 1329 | static inline void pci_restore_msi_state(struct pci_dev *dev) { } |
| 1334 | static inline int pci_msi_enabled(void) { return 0; } | 1330 | static inline int pci_msi_enabled(void) { return 0; } |
