Patchwork [1.1] intel-hda: Fix reset of MSI function

login
register
mail settings
Submitter Jan Kiszka
Date May 30, 2012, 8:41 a.m.
Message ID <4FC5DD3C.90209@siemens.com>
Download mbox | patch
Permalink /patch/161913/
State New
Headers show

Comments

Jan Kiszka - May 30, 2012, 8:41 a.m.
Call msi_reset on device reset as still required by the core.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 hw/intel-hda.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Gerd Hoffmann - June 4, 2012, 9:14 a.m.
On 05/30/12 10:41, Jan Kiszka wrote:
> Call msi_reset on device reset as still required by the core.

Acked-by: Gerd Hoffmann <kraxel@redhat.com>

cheers,
  Gerd

Patch

diff --git a/hw/intel-hda.c b/hw/intel-hda.c
index bb11af2..e38861e 100644
--- a/hw/intel-hda.c
+++ b/hw/intel-hda.c
@@ -1107,6 +1107,9 @@  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);