From: Paolo Bonzini Date: Mon, 17 Dec 2012 10:23:25 +0000 (+0100) Subject: lsi: use qbus_reset_all to reset SCSI bus X-Git-Tag: v1.4.0-rc0~112^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=032f0101aa6e009efda3a419379837ebceaeade1;p=thirdparty%2Fqemu.git lsi: use qbus_reset_all to reset SCSI bus Signed-off-by: Paolo Bonzini --- diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 89c657fb00b..860df328e59 100644 --- a/hw/lsi53c895a.c +++ b/hw/lsi53c895a.c @@ -1670,12 +1670,7 @@ static void lsi_reg_writeb(LSIState *s, int offset, uint8_t val) } if (val & LSI_SCNTL1_RST) { if (!(s->sstat0 & LSI_SSTAT0_RST)) { - BusChild *kid; - - QTAILQ_FOREACH(kid, &s->bus.qbus.children, sibling) { - DeviceState *dev = kid->child; - device_reset(dev); - } + qbus_reset_all(&s->bus.qbus); s->sstat0 |= LSI_SSTAT0_RST; lsi_script_scsi_interrupt(s, LSI_SIST0_RST, 0); }