Peter Maydell 1dfb7a175f hw/usb/hcd-xhci: Reset the XHCIState with device_cold_reset()
Currently the hcd-xhci-pci and hcd-xhci-sysbus devices, which are
mostly wrappers around the TYPE_XHCI device, which is a direct
subclass of TYPE_DEVICE.  Since TYPE_DEVICE devices are not on any
qbus and do not get automatically reset, the wrapper devices both
reset the TYPE_XHCI device in their own reset functions.  However,
they do this using device_legacy_reset(), which will reset the device
itself but not any bus it has.

Switch to device_cold_reset(), which avoids using a deprecated
function and also propagates reset along any child buses.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20221014145423.2102706-1-peter.maydell@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2022-11-23 12:28:51 +01:00
..
2022-06-14 10:34:36 +02:00
2022-01-13 10:22:37 +01:00
2022-01-13 10:22:37 +01:00
2022-11-08 11:13:48 +01:00
2022-10-31 20:37:58 +00:00
2022-11-08 11:13:48 +01:00
2022-11-08 11:13:48 +01:00
2022-11-08 11:13:48 +01:00
2022-09-27 07:59:26 -04:00
2022-06-14 10:34:36 +02:00
2022-06-14 10:34:36 +02:00
2022-08-01 11:58:02 +02:00