summaryrefslogtreecommitdiffstats
path: root/hw/lsi53c895a.c
diff options
context:
space:
mode:
authorAnthony Liguori2013-01-23 16:08:54 +0100
committerAnthony Liguori2013-01-23 16:08:54 +0100
commit177f7fc6884c47666f6c6eeca376a92432ccda38 (patch)
tree75f5ec98b1aa5c9c15b95033431e9a141cf59fd5 /hw/lsi53c895a.c
parentMerge remote-tracking branch 'kraxel/usb.77' into staging (diff)
parentscsi: Drop useless null test in scsi_unit_attention() (diff)
downloadqemu-177f7fc6884c47666f6c6eeca376a92432ccda38.tar.gz
qemu-177f7fc6884c47666f6c6eeca376a92432ccda38.tar.xz
qemu-177f7fc6884c47666f6c6eeca376a92432ccda38.zip
Merge remote-tracking branch 'bonzini/scsi-next' into staging
# By Peter Lieven (3) and others # Via Paolo Bonzini * bonzini/scsi-next: scsi: Drop useless null test in scsi_unit_attention() lsi: use qbus_reset_all to reset SCSI bus scsi: fix segfault with 0-byte disk iscsi: add support for iSCSI NOPs [v2] iscsi: partly avoid iovec linearization in iscsi_aio_writev iscsi: add iscsi_create support
Diffstat (limited to 'hw/lsi53c895a.c')
-rw-r--r--hw/lsi53c895a.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
index 89c657fb00..860df328e5 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);
}