summary refs log tree commit diff stats
path: root/hw/intel-hda.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-05-15 20:09:56 -0300
committerMichael S. Tsirkin <mst@redhat.com>2012-06-07 17:19:00 +0300
commitcbd2d4342b3d42ab33baa99f5b7a23491b5692f2 (patch)
tree34edef8be5a550587e9bae0c27d835d35bad1919 /hw/intel-hda.c
parent520064c8b15504fb75babce7be6b5800b54ec490 (diff)
downloadfocaccia-qemu-cbd2d4342b3d42ab33baa99f5b7a23491b5692f2.tar.gz
focaccia-qemu-cbd2d4342b3d42ab33baa99f5b7a23491b5692f2.zip
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 <agraf@suse.de>
CC: Gerd Hoffmann <kraxel@redhat.com>
CC: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/intel-hda.c')
-rw-r--r--hw/intel-hda.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/intel-hda.c b/hw/intel-hda.c
index e38861e5de..bb11af286a 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);