Skip to content
Snippets Groups Projects
Commit 3e1c8ba9 authored by Peter Maydell's avatar Peter Maydell Committed by David Gibson
Browse files

hw/ppc/spapr_vio: Reset TCE table object with device_cold_reset()


The spapr_vio_quiesce_one() function resets the TCE table object
(TYPE_SPAPR_TCE_TABLE) via device_legacy_reset().  We know that
objects of that type do not have a qbus of their own, so the new
device_cold_reset() function (which resets both the device and its
child buses) is equivalent here to device_legacy_reset() and we can
just switch to the new API.

Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Message-Id: <20210503151849.8766-3-peter.maydell@linaro.org>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent b2df46fd
No related branches found
No related tags found
No related merge requests found
......@@ -310,7 +310,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_cold_reset(DEVICE(dev->tcet));
}
free_crq(dev);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment