Patchwork intel-hda: do not reset codecs from intel_hda_reset

login
register
mail settings
Submitter Paolo Bonzini
Date Jan. 10, 2013, 2:41 p.m.
Message ID <1357828875-2484-1-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/211024/
State New
Headers show

Comments

Paolo Bonzini - Jan. 10, 2013, 2:41 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 98ff936..850e60f 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);