Files
qemu/hw/usb
Peter Maydell dfa6ba6bae Replace use of qdev_reset_all() with device_cold_reset()
The legacy function qdev_reset_all() performs a recursive reset,
starting from a qdev.  However, it does not permit any of the devices
in the tree to use three-phase reset, because device reset goes
through the device_legacy_reset() function that only calls the single
DeviceClass::reset method.

Switch to using the device_cold_reset() function instead.  This also
performs a recursive reset, where first the children are reset and
then finally the parent, but it uses the new (...in 2020...)
Resettable mechanism, which supports both the old style single-reset
method and also the new 3-phase reset handling.

This commit changes the five remaining uses of this function.

Commit created with:
 sed -i -e 's/qdev_reset_all/device_cold_reset/g' hw/i386/xen/xen_platform.c hw/input/adb.c hw/remote/vfio-user-obj.c hw/s390x/s390-virtio-ccw.c hw/usb/dev-uas.c

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2022-12-16 15:55:32 +00:00
..
2021-11-02 15:55:14 +00:00
2022-06-14 10:34:36 +02:00
2020-09-18 14:12:32 -04:00
2021-01-22 14:51:35 +01: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
2020-05-15 07:08:14 +02:00
2022-11-08 11:13:48 +01:00
2022-06-14 10:34:36 +02:00
2022-06-14 10:34:36 +02:00
2021-02-17 14:29:12 +01:00
2021-05-12 18:20:25 +02:00
2021-03-15 17:00:58 +01:00
2022-08-01 11:58:02 +02:00