From cbd2d4342b3d42ab33baa99f5b7a23491b5692f2 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Tue, 15 May 2012 20:09:56 -0300 Subject: msi: Invoke msi/msix_reset from PCI core There is no point in pushing this burden to the devices, they tend to forget to call them (like intel-hda, ahci, xhci did). Instead, reset functions are now called from pci_device_reset. They do nothing if MSI/MSI-X is not in use. CC: Alexander Graf CC: Gerd Hoffmann CC: Isaku Yamahata Signed-off-by: Jan Kiszka Signed-off-by: Michael S. Tsirkin --- hw/intel-hda.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'hw/intel-hda.c') diff --git a/hw/intel-hda.c b/hw/intel-hda.c index e38861e..bb11af2 100644 --- a/hw/intel-hda.c +++ b/hw/intel-hda.c @@ -1107,9 +1107,6 @@ static void intel_hda_reset(DeviceState *dev) DeviceState *qdev; HDACodecDevice *cdev; - if (d->msi) { - msi_reset(&d->pci); - } intel_hda_regs_reset(d); d->wall_base_ns = qemu_get_clock_ns(vm_clock); -- cgit v1.1