pci: Switch bus reset to 3-phase-reset
commite6c03989af6dcdfdd64ff717a8b4b47f3848c0b7
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 19 Jan 2024 16:35:08 +0000 (19 16:35 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Feb 2024 13:51:57 +0000 (2 13:51 +0000)
tree07978de777ec8632fe1c7f9973bcedf816936b87
parentf670be1aad33e801779af580398895b9455747ee
pci: Switch bus reset to 3-phase-reset

Switch the PCI bus from using BusClass::reset to the Resettable
interface.

This has no behavioural change, because the BusClass code to support
subclasses that use the legacy BusClass::reset will call that method
in the hold phase of 3-phase reset.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Cédric Le Goater <clg@redhat.com>
Tested-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Message-id: 20240119163512.3810301-2-peter.maydell@linaro.org
hw/pci/pci.c