Patchwork [v10,03/11] PCI: Set dev_node early for pci_dev

login
register
mail settings
Submitter Yinghai Lu
Date Jan. 21, 2013, 9:20 p.m.
Message ID <1358803252-20639-4-git-send-email-yinghai@kernel.org>
Download mbox | patch
Permalink /patch/214264/
State Accepted
Headers show

Comments

Yinghai Lu - Jan. 21, 2013, 9:20 p.m.
Otherwise irq_desc for pci bridge with hot-added ioapic can not be on
local node.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 drivers/pci/probe.c |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index bbe4be7..dcef3b9 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -1300,6 +1300,7 @@  void pci_device_add(struct pci_dev *dev, struct pci_bus *bus)
 	dev->dev.release = pci_release_dev;
 	pci_dev_get(dev);
 
+	set_dev_node(&dev->dev, pcibus_to_node(bus));
 	dev->dev.dma_mask = &dev->dma_mask;
 	dev->dev.dma_parms = &dev->dma_parms;
 	dev->dev.coherent_dma_mask = 0xffffffffull;