[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for-8.0 0/9] reset: Remove some deprecated APIs
From: |
Peter Maydell |
Subject: |
[PATCH for-8.0 0/9] reset: Remove some deprecated APIs |
Date: |
Fri, 4 Nov 2022 16:15:04 +0000 |
This patchset removes the remaining uses of some deprecated
reset-related APIs:
* device_legacy_reset() -- replaced with device_cold_reset()
(conversions require some thought)
* qdev_reset_all() -- replaced with device_cold_reset()
(mechanical no-behaviour-change conversion)
* qbus_reset_all() -- replaced with bus_cold_reset()
(mechanical no-behaviour-change conversion)
The first four patches have been on the list already; the
first three have been reviewed.
Mostly just tested with 'make check' and 'make check-avocado'.
This is of course all for-8.0 material, but I figured I
might as well push it out on list for review, especially
since I have some followup stuff that depends on this.
thanks
-- PMM
Peter Maydell (9):
hw/s390x/s390-pci-inst.c: Use device_cold_reset() to reset PCI devices
hw/audio/intel-hda: don't reset codecs twice
hw/audio/intel-hda: Drop unnecessary prototype
hw/usb/hcd-xhci: Reset the XHCIState with device_cold_reset()
pci: Use device_cold_reset() and bus_cold_reset()
hw/hyperv/vmbus: Use device_cold_reset() and bus_cold_reset()
Replace use of qdev_reset_all() with device_cold_reset()
qdev: Remove qdev_reset_all() and qbus_reset_all()
hw: Remove device_legacy_reset()
include/hw/qdev-core.h | 35 ---------------------
hw/audio/intel-hda.c | 6 +---
hw/core/qdev.c | 64 --------------------------------------
hw/hyperv/vmbus.c | 4 +--
hw/i386/xen/xen_platform.c | 2 +-
hw/input/adb.c | 2 +-
hw/pci/pci.c | 6 ++--
hw/pci/pci_bridge.c | 2 +-
hw/remote/vfio-user-obj.c | 2 +-
hw/s390x/s390-pci-inst.c | 2 +-
hw/s390x/s390-virtio-ccw.c | 2 +-
hw/usb/dev-uas.c | 2 +-
hw/usb/hcd-xhci-pci.c | 2 +-
hw/usb/hcd-xhci-sysbus.c | 2 +-
hw/core/trace-events | 4 ---
15 files changed, 15 insertions(+), 122 deletions(-)
--
2.25.1
- [PATCH for-8.0 0/9] reset: Remove some deprecated APIs,
Peter Maydell <=
- [PATCH for-8.0 2/9] hw/audio/intel-hda: don't reset codecs twice, Peter Maydell, 2022/11/04
- [PATCH for-8.0 4/9] hw/usb/hcd-xhci: Reset the XHCIState with device_cold_reset(), Peter Maydell, 2022/11/04
- [PATCH for-8.0 7/9] Replace use of qdev_reset_all() with device_cold_reset(), Peter Maydell, 2022/11/04
- [PATCH for-8.0 9/9] hw: Remove device_legacy_reset(), Peter Maydell, 2022/11/04
- [PATCH for-8.0 3/9] hw/audio/intel-hda: Drop unnecessary prototype, Peter Maydell, 2022/11/04
- [PATCH for-8.0 6/9] hw/hyperv/vmbus: Use device_cold_reset() and bus_cold_reset(), Peter Maydell, 2022/11/04