diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-09-19 13:50:30 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-09-19 13:50:30 -0400 |
| commit | b29f83aa8b7018cdbe687dd57b239160e25889f0 (patch) | |
| tree | 224532c951bff92d37788511d39d9173bce24152 /include/linux | |
| parent | 73030efad5bd280ae9c3b5073710786e6300906e (diff) | |
| parent | 649ae75286793304130e747efa7d1a88daaf7e2e (diff) | |
Merge tag 'pci-v3.17-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
Pull PCI fixes from Bjorn Helgaas:
"These fix:
- Boot video device detection on dual-GPU Apple systems
- Hotplug fiascos on VGA switcheroo with radeon & nouveau drivers
- Boot hang on Freescale i.MX6 systems
- Excessive "no hotplug settings from platform" warnings
In particular:
Enumeration
- Don't default exclusively to first video device (Bruno Prémont)
PCI device hotplug
- Remove "no hotplug settings from platform" warning (Bjorn Helgaas)
- Add pci_ignore_hotplug() for VGA switcheroo (Bjorn Helgaas)
Freescale i.MX6
- Put LTSSM in "Detect" state before disabling (Lucas Stach)"
* tag 'pci-v3.17-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
vgaarb: Drop obsolete #ifndef
vgaarb: Don't default exclusively to first video device with mem+io
ACPIPHP / radeon / nouveau: Remove acpi_bus_no_hotplug()
PCI: Remove "no hotplug settings from platform" warning
PCI: Add pci_ignore_hotplug() to ignore hotplug events for a device
PCI: imx6: Put LTSSM in "Detect" state before disabling it
MAINTAINERS: Add Lucas Stach as co-maintainer for i.MX6 PCI driver
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pci.h | 6 | ||||
| -rw-r--r-- | include/linux/vgaarb.h | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 61978a460841..96453f9bc8ba 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -303,6 +303,7 @@ struct pci_dev { | |||
| 303 | D3cold, not set for devices | 303 | D3cold, not set for devices |
| 304 | powered on/off by the | 304 | powered on/off by the |
| 305 | corresponding bridge */ | 305 | corresponding bridge */ |
| 306 | unsigned int ignore_hotplug:1; /* Ignore hotplug events */ | ||
| 306 | unsigned int d3_delay; /* D3->D0 transition time in ms */ | 307 | unsigned int d3_delay; /* D3->D0 transition time in ms */ |
| 307 | unsigned int d3cold_delay; /* D3cold->D0 transition time in ms */ | 308 | unsigned int d3cold_delay; /* D3cold->D0 transition time in ms */ |
| 308 | 309 | ||
| @@ -1021,6 +1022,11 @@ bool pci_dev_run_wake(struct pci_dev *dev); | |||
| 1021 | bool pci_check_pme_status(struct pci_dev *dev); | 1022 | bool pci_check_pme_status(struct pci_dev *dev); |
| 1022 | void pci_pme_wakeup_bus(struct pci_bus *bus); | 1023 | void pci_pme_wakeup_bus(struct pci_bus *bus); |
| 1023 | 1024 | ||
| 1025 | static inline void pci_ignore_hotplug(struct pci_dev *dev) | ||
| 1026 | { | ||
| 1027 | dev->ignore_hotplug = 1; | ||
| 1028 | } | ||
| 1029 | |||
| 1024 | static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, | 1030 | static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, |
| 1025 | bool enable) | 1031 | bool enable) |
| 1026 | { | 1032 | { |
diff --git a/include/linux/vgaarb.h b/include/linux/vgaarb.h index 2c02f3a8d2ba..c37bd4d06739 100644 --- a/include/linux/vgaarb.h +++ b/include/linux/vgaarb.h | |||
| @@ -182,7 +182,6 @@ extern void vga_put(struct pci_dev *pdev, unsigned int rsrc); | |||
| 182 | * vga_get()... | 182 | * vga_get()... |
| 183 | */ | 183 | */ |
| 184 | 184 | ||
| 185 | #ifndef __ARCH_HAS_VGA_DEFAULT_DEVICE | ||
| 186 | #ifdef CONFIG_VGA_ARB | 185 | #ifdef CONFIG_VGA_ARB |
| 187 | extern struct pci_dev *vga_default_device(void); | 186 | extern struct pci_dev *vga_default_device(void); |
| 188 | extern void vga_set_default_device(struct pci_dev *pdev); | 187 | extern void vga_set_default_device(struct pci_dev *pdev); |
| @@ -190,7 +189,6 @@ extern void vga_set_default_device(struct pci_dev *pdev); | |||
| 190 | static inline struct pci_dev *vga_default_device(void) { return NULL; }; | 189 | static inline struct pci_dev *vga_default_device(void) { return NULL; }; |
| 191 | static inline void vga_set_default_device(struct pci_dev *pdev) { }; | 190 | static inline void vga_set_default_device(struct pci_dev *pdev) { }; |
| 192 | #endif | 191 | #endif |
| 193 | #endif | ||
| 194 | 192 | ||
| 195 | /** | 193 | /** |
| 196 | * vga_conflicts | 194 | * vga_conflicts |
