diff options
| author | Daniel Henrique Barboza <danielhb413@gmail.com> | 2022-06-21 14:34:29 -0300 |
|---|---|---|
| committer | Daniel Henrique Barboza <danielhb413@gmail.com> | 2022-07-06 10:22:37 -0300 |
| commit | 1c69cb4e7552be2984ba67861f35938ef8024f0c (patch) | |
| tree | e544044c5ea23d726c6b73d2d50c4d2220b5a831 /hw/pci-host/pnv_phb4_pec.c | |
| parent | 180c2f24d5e8eada41e012a3899d29bb695aae06 (diff) | |
| download | focaccia-qemu-1c69cb4e7552be2984ba67861f35938ef8024f0c.tar.gz focaccia-qemu-1c69cb4e7552be2984ba67861f35938ef8024f0c.zip | |
ppc/pnv: move root port attach to pnv_phb4_realize()
Creating a root port is something related to the PHB, not the PEC. It also makes the logic more in line with what pnv-phb3 does. Reviewed-by: Frederic Barrat <fbarrat@linux.ibm.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Message-Id: <20220621173436.165912-2-danielhb413@gmail.com>
Diffstat (limited to 'hw/pci-host/pnv_phb4_pec.c')
| -rw-r--r-- | hw/pci-host/pnv_phb4_pec.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/pci-host/pnv_phb4_pec.c b/hw/pci-host/pnv_phb4_pec.c index 8b7e823fa5..c9aaf1c28e 100644 --- a/hw/pci-host/pnv_phb4_pec.c +++ b/hw/pci-host/pnv_phb4_pec.c @@ -130,9 +130,6 @@ static void pnv_pec_default_phb_realize(PnvPhb4PecState *pec, if (!sysbus_realize(SYS_BUS_DEVICE(phb), errp)) { return; } - - /* Add a single Root port if running with defaults */ - pnv_phb_attach_root_port(PCI_HOST_BRIDGE(phb), pecc->rp_model); } static void pnv_pec_realize(DeviceState *dev, Error **errp) |