aboutsummaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2013-05-07 14:35:44 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-11 07:18:38 -0700
commitbb22b7608a6b27cb585f0fc38c49c4e99e7d8038 (patch)
tree6810c0765cd4a53a659c0d611fbf650bba9aa429 /virt
parentf2e426a46a35a8cd30c7c7c39e099f7bd857ce0b (diff)
PCI: Delay final fixups until resources are assigned
commit e253aaf0af51c1e4dc7dd3b26ea8e666bf9a2d8d upstream. Commit 4f535093cf "PCI: Put pci_dev in device tree as early as possible" moved final fixups from pci_bus_add_device() to pci_device_add(). But pci_device_add() happens before resource assignment, so BARs may not be valid yet. Typical flow for hot-add: pciehp_configure_device pci_scan_slot pci_scan_single_device pci_device_add pci_fixup_device(pci_fixup_final, dev) # previous location # resource assignment happens here pci_bus_add_devices pci_bus_add_device pci_fixup_device(pci_fixup_final, dev) # new location [bhelgaas: changelog, move fixups to pci_bus_add_device()] Reference: https://lkml.kernel.org/r/20130415182614.GB9224@xanatos Reported-by: David Bulkow <David.Bulkow@stratus.com> Tested-by: David Bulkow <David.Bulkow@stratus.com> Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions