[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH RESEND v3 03/58] Revert "hw/versatile: realize the PCI root bus a
From: |
Markus Armbruster |
Subject: |
[PATCH RESEND v3 03/58] Revert "hw/versatile: realize the PCI root bus as part of the versatile init" |
Date: |
Wed, 10 Jun 2020 07:31:52 +0200 |
This reverts commit b1af7959a66610669e1a019b9a84f6ed3a7936c6.
Realizing a device automatically realizes its buses, in
device_set_realized(). Realizing them in realize methods is
redundant, unless the methods themselves require them to be realized
early. pci_vpb_realize() doesn't. Drop the redundant bus
realization.
Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
---
hw/pci-host/versatile.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/hw/pci-host/versatile.c b/hw/pci-host/versatile.c
index cfb9a78ea6..28817dbeec 100644
--- a/hw/pci-host/versatile.c
+++ b/hw/pci-host/versatile.c
@@ -458,7 +458,6 @@ static void pci_vpb_realize(DeviceState *dev, Error **errp)
}
/* TODO Remove once realize propagates to child devices. */
- object_property_set_bool(OBJECT(&s->pci_bus), true, "realized", errp);
object_property_set_bool(OBJECT(&s->pci_dev), true, "realized", errp);
}
--
2.26.2
- [PATCH RESEND v3 00/58] qdev: Rework how we plug into the parent bus, Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 08/58] qdev: Convert to qdev_unrealize() manually, Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 06/58] qdev: Convert to qbus_realize(), qbus_unrealize(), Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 12/58] qdev: Convert uses of qdev_set_parent_bus() manually, Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 20/58] isa: Convert uses of isa_create(), isa_try_create() manually, Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 18/58] isa: New isa_new(), isa_realize_and_unref() etc., Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 01/58] qdev: Rename qbus_realize() to qbus_init(), Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 05/58] qdev: Put qdev_new() to use with Coccinelle, Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 03/58] Revert "hw/versatile: realize the PCI root bus as part of the versatile init",
Markus Armbruster <=
- [PATCH RESEND v3 07/58] qdev: Convert to qdev_unrealize() with Coccinelle, Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 14/58] hw/ppc: Eliminate two superfluous QOM casts, Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 10/58] qdev: Convert uses of qdev_create() manually, Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 02/58] Revert "hw/prep: realize the PCI root bus as part of the prep init", Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 19/58] isa: Convert uses of isa_create() with Coccinelle, Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 30/58] qdev: qdev_create(), qdev_try_create() are now unused, drop, Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 22/58] ssi: ssi_auto_connect_slaves() never does anything, drop, Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 09/58] qdev: Convert uses of qdev_create() with Coccinelle, Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 26/58] usb: New usb_new(), usb_realize_and_unref(), Markus Armbruster, 2020/06/10
- [PATCH RESEND v3 24/58] ssi: Convert last use of ssi_create_slave_no_init() manually, Markus Armbruster, 2020/06/10