[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [Qemu-devel] [PATCH 5/7] hw/grackle: fix PCI bus initializati
From: |
Marcel Apfelbaum |
Subject: |
[Qemu-ppc] [Qemu-devel] [PATCH 5/7] hw/grackle: fix PCI bus initialization |
Date: |
Thu, 14 Jul 2016 16:43:44 +0300 |
Delay the host-bridge 'realization' until the
PCI root bus is attached.
Signed-off-by: Marcel Apfelbaum <address@hidden>
---
hw/pci-host/grackle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/pci-host/grackle.c b/hw/pci-host/grackle.c
index 8f91216..2c8acda 100644
--- a/hw/pci-host/grackle.c
+++ b/hw/pci-host/grackle.c
@@ -72,7 +72,6 @@ PCIBus *pci_grackle_init(uint32_t base, qemu_irq *pic,
GrackleState *d;
dev = qdev_create(NULL, TYPE_GRACKLE_PCI_HOST_BRIDGE);
- qdev_init_nofail(dev);
s = SYS_BUS_DEVICE(dev);
phb = PCI_HOST_BRIDGE(dev);
d = GRACKLE_PCI_HOST_BRIDGE(dev);
@@ -92,6 +91,7 @@ PCIBus *pci_grackle_init(uint32_t base, qemu_irq *pic,
0, 4, TYPE_PCI_BUS);
pci_create_simple(phb->bus, 0, "grackle");
+ qdev_init_nofail(dev);
sysbus_mmio_map(s, 0, base);
sysbus_mmio_map(s, 1, base + 0x00200000);
--
2.4.3
- [Qemu-ppc] [Qemu-devel] [PATCH 0/7] hw/pci-bus: Fix PCI bus regression on several archs, Marcel Apfelbaum, 2016/07/14
- [Qemu-ppc] [Qemu-devel] [PATCH 1/7] tests/prom-env-test: increase the test timeout, Marcel Apfelbaum, 2016/07/14
- [Qemu-ppc] [Qemu-devel] [PATCH 2/7] hw/alpha: fix PCI bus initialization, Marcel Apfelbaum, 2016/07/14
- [Qemu-ppc] [Qemu-devel] [PATCH 3/7] hw/mips: fix PCI bus initialization, Marcel Apfelbaum, 2016/07/14
- [Qemu-ppc] [Qemu-devel] [PATCH 4/7] hw/apb: fix PCI bus initialization, Marcel Apfelbaum, 2016/07/14
- [Qemu-ppc] [Qemu-devel] [PATCH 5/7] hw/grackle: fix PCI bus initialization,
Marcel Apfelbaum <=
- [Qemu-ppc] [Qemu-devel] [PATCH 6/7] hw/prep: realize the PCI root bus as part of the prep init, Marcel Apfelbaum, 2016/07/14
- [Qemu-ppc] [Qemu-devel] [PATCH 7/7] hw/versatile: realize the PCI root bus as part of the versatile init, Marcel Apfelbaum, 2016/07/14
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 0/7] hw/pci-bus: Fix PCI bus regression on several archs, Mark Cave-Ayland, 2016/07/15