[PATCH for-8.0 0/9] reset: Remove some deprecated APIs

Peter Maydell posted 9 patches 1 year, 6 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20221104161513.2455862-1-peter.maydell@linaro.org
Maintainers: Gerd Hoffmann <kraxel@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Eduardo Habkost <eduardo@habkost.net>, "Maciej S. Szmigiero" <maciej.szmigiero@oracle.com>, Stefano Stabellini <sstabellini@kernel.org>, Anthony Perard <anthony.perard@citrix.com>, Paul Durrant <paul@xen.org>, Richard Henderson <richard.henderson@linaro.org>, "Michael S. Tsirkin" <mst@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Elena Ufimtseva <elena.ufimtseva@oracle.com>, Jagannathan Raman <jag.raman@oracle.com>, John G Johnson <john.g.johnson@oracle.com>, Matthew Rosato <mjrosato@linux.ibm.com>, Eric Farman <farman@linux.ibm.com>, David Hildenbrand <david@redhat.com>, Ilya Leoshkevich <iii@linux.ibm.com>, Halil Pasic <pasic@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, Thomas Huth <thuth@redhat.com>
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(-)
[PATCH for-8.0 0/9] reset: Remove some deprecated APIs
Posted by Peter Maydell 1 year, 6 months ago
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