projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0369f06
)
lsi: use qbus_reset_all to reset SCSI bus
author
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 17 Dec 2012 10:23:25 +0000
(11:23 +0100)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 22 Jan 2013 14:07:03 +0000
(15:07 +0100)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/lsi53c895a.c
patch
|
blob
|
history
diff --git
a/hw/lsi53c895a.c
b/hw/lsi53c895a.c
index 89c657fb00b3af2b446091da2a00912a5d81210f..860df328e5945611ba8c2ffa9f222dbd21f506be 100644
(file)
--- 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);
}