android_kernel_samsung_msm8976/drivers/pci
Marcel Apfelbaum d0e845f656 PCI: shpchp: Check bridge's secondary (not primary) bus speed
commit 93fa9d32670f5592c8e56abc9928fc194e1e72fc upstream.

When a new device is added below a hotplug bridge, the bridge's secondary
bus speed and the device's bus speed must match.  The shpchp driver
previously checked the bridge's *primary* bus speed, not the secondary bus
speed.

This caused hot-add errors like:

  shpchp 0000:00:03.0: Speed of bus ff and adapter 0 mismatch

Check the secondary bus speed instead.

[bhelgaas: changelog]
Link: https://bugzilla.kernel.org/show_bug.cgi?id=75251
Fixes: 3749c51ac6 ("PCI: Make current and maximum bus speeds part of the PCI core")
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-07 13:25:38 -07:00
..
hotplug PCI: shpchp: Check bridge's secondary (not primary) bus speed 2014-06-07 13:25:38 -07:00
pcie PCI: Remove duplicate pci_disable_device() from pcie_portdrv_remove() 2013-12-04 10:57:04 -08:00
access.c PCI: Support PCIe Capability Slot registers only for ports with slots 2013-11-29 11:11:42 -08:00
ats.c
bus.c
host-bridge.c
hotplug-pci.c
htirq.c
ioapic.c
iov.c PCI: Finish SR-IOV VF setup before adding the device 2013-07-21 18:21:30 -07:00
irq.c
Kconfig
Makefile
msi.c
of.c
pci-acpi.c PCI / ACPI / PM: Clear pme_poll for devices in D3cold on wakeup 2013-10-01 09:17:45 -07:00
pci-driver.c PCI: Disable Bus Master only on kexec reboot 2013-12-20 07:45:08 -08:00
pci-label.c
pci-stub.c
pci-sysfs.c
pci.c PCI: Enable INTx in pci_reenable_device() only when MSI/MSI-X not enabled 2014-03-23 21:38:18 -07:00
pci.h
probe.c PCI: Fix refcount issue in pci_create_root_bus() error recovery path 2013-07-21 18:21:30 -07:00
proc.c
quirks.c ahci: Add AMD CZ SATA device ID 2013-07-21 18:21:30 -07:00
remove.c
rom.c
search.c
setup-bus.c PCI: Retry allocation of only the resource type that failed 2013-08-11 18:35:24 -07:00
setup-irq.c
setup-res.c
slot.c
syscall.c
vpd.c
xen-pcifront.c xen/pcifront: Deal with toolstack missing 'XenbusStateClosing' state. 2013-07-21 18:21:27 -07:00