Patchwork [02/15] intel-hda: do not reset codecs from intel_hda_reset

login
register
mail settings
Submitter Paolo Bonzini
Date Dec. 17, 2012, 4:24 p.m.
Message ID <1355761490-10073-3-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/206910/
State New
Headers show

Comments

Paolo Bonzini - Dec. 17, 2012, 4:24 p.m.
They are reset implicitly by walking the qdev tree, before calling intel_hda_reset.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 hw/intel-hda.c | 1 -
 1 file changed, 1 deletion(-)

Patch

diff --git a/hw/intel-hda.c b/hw/intel-hda.c
index a68c368..e7c9dd9 100644
--- a/hw/intel-hda.c
+++ b/hw/intel-hda.c
@@ -1112,7 +1112,6 @@  static void intel_hda_reset(DeviceState *dev)
     QTAILQ_FOREACH(kid, &d->codecs.qbus.children, sibling) {
         DeviceState *qdev = kid->child;
         cdev = DO_UPCAST(HDACodecDevice, qdev, qdev);
-        device_reset(DEVICE(cdev));
         d->state_sts |= (1 << cdev->cad);
     }
     intel_hda_update_irq(d);