[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PATCH v3 24/33] hw/ppc/spapr: remove device_legacy_reset c
From: |
Damien Hedde |
Subject: |
[qemu-s390x] [PATCH v3 24/33] hw/ppc/spapr: remove device_legacy_reset call |
Date: |
Mon, 29 Jul 2019 16:56:45 +0200 |
Replace legacy's reset call by device_reset_warm.
The new function propagates also the reset to the sub-buses tree.
In spapr_vio.c, the function resets a SpaprtceTable which does not seem
to have child bus so it should have no impact.
In Spapr_pci.c the functions resets QOM children devices of a SpaprPhbState.
If there is a device with a child bus, then this bus will now be reset
(and all its qdev tree).
Signed-off-by: Damien Hedde <address@hidden>
---
hw/ppc/spapr_pci.c | 2 +-
hw/ppc/spapr_vio.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c
index 3c6cf79a5e..946b2b4483 100644
--- a/hw/ppc/spapr_pci.c
+++ b/hw/ppc/spapr_pci.c
@@ -2029,7 +2029,7 @@ static int spapr_phb_children_reset(Object *child, void
*opaque)
DeviceState *dev = (DeviceState *) object_dynamic_cast(child, TYPE_DEVICE);
if (dev) {
- device_legacy_reset(dev);
+ device_reset_warm(dev);
}
return 0;
diff --git a/hw/ppc/spapr_vio.c b/hw/ppc/spapr_vio.c
index 5a0b5cc35c..41c17cfdd6 100644
--- a/hw/ppc/spapr_vio.c
+++ b/hw/ppc/spapr_vio.c
@@ -306,7 +306,7 @@ int spapr_vio_send_crq(SpaprVioDevice *dev, uint8_t *crq)
static void spapr_vio_quiesce_one(SpaprVioDevice *dev)
{
if (dev->tcet) {
- device_legacy_reset(DEVICE(dev->tcet));
+ device_reset_warm(DEVICE(dev->tcet));
}
free_crq(dev);
}
--
2.22.0
- [qemu-s390x] [PATCH v3 33/33] Connect the uart reset gpios in the zynq platform, (continued)
- [qemu-s390x] [PATCH v3 33/33] Connect the uart reset gpios in the zynq platform, Damien Hedde, 2019/07/29
- [qemu-s390x] [PATCH v3 07/33] automatically add vmstate for reset support in devices, Damien Hedde, 2019/07/29
- [qemu-s390x] [PATCH v3 10/33] vl.c: remove qbus_reset_all registration, Damien Hedde, 2019/07/29
- [qemu-s390x] [PATCH v3 08/33] Add function to control reset with gpio inputs, Damien Hedde, 2019/07/29
- [qemu-s390x] [PATCH v3 09/33] add doc about Resettable interface, Damien Hedde, 2019/07/29
- [qemu-s390x] [PATCH v3 18/33] hw/audio/intel-hda.c: remove device_legacy_reset call, Damien Hedde, 2019/07/29
- [qemu-s390x] [PATCH v3 21/33] hw/intc/spapr_xive.c: remove device_legacy_reset call, Damien Hedde, 2019/07/29
- [qemu-s390x] [PATCH v3 19/33] hw/sd/pl181.c & omap_mmc.c: remove device_legacy_reset call, Damien Hedde, 2019/07/29
- [qemu-s390x] [PATCH v3 11/33] hw/s390x/ipl.c: remove qbus_reset_all registration, Damien Hedde, 2019/07/29
- [qemu-s390x] [PATCH v3 25/33] hw/i386/pc.c: remove device_legacy_reset call, Damien Hedde, 2019/07/29
- [qemu-s390x] [PATCH v3 24/33] hw/ppc/spapr: remove device_legacy_reset call,
Damien Hedde <=
- [qemu-s390x] [PATCH v3 29/33] hw/misc/zynq_slcr: use standard register definition, Damien Hedde, 2019/07/29
- [qemu-s390x] [PATCH v3 26/33] hw/s390x/s390-pci-inst.c: remove device_legacy_reset call, Damien Hedde, 2019/07/29
- Re: [qemu-s390x] [PATCH v3 00/33] Multi-phase reset mechanism, Cornelia Huck, 2019/07/30