Skip to content

Commit

Permalink
lsi: use qbus_reset_all to reset SCSI bus
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Jan 22, 2013
1 parent 0369f06 commit 032f010
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions hw/lsi53c895a.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 032f010

Please sign in to comment.