summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-03-23 15:43:45 +0100
committerGerd Hoffmann <kraxel@redhat.com>2012-04-17 10:23:28 +0200
commit088351a7e50b7f14cda9520bcb8a7896e226aa36 (patch)
treee0013b9c9693bd6eb717c97bfd97a6fd0c3e7eca /hw
parent529f8f9fa939b8db13bf5cd1cd549d993cf25cb8 (diff)
downloadhqemu-088351a7e50b7f14cda9520bcb8a7896e226aa36.zip
hqemu-088351a7e50b7f14cda9520bcb8a7896e226aa36.tar.gz
usb-ehci: fix ehci_child_detach
Looks like a cut+paste bug from ehci_detach. When the device itself is detached from a ehci port (ehci_detach op) we have to clear the device pointer for the companion port too. When a device gets removed from a downstream port of a usb hub (ehci_child_detach op) the ehci port where the usb hub is plugged in is not affected. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/usb/hcd-ehci.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
index 60f9f5b..34f7538 100644
--- a/hw/usb/hcd-ehci.c
+++ b/hw/usb/hcd-ehci.c
@@ -797,7 +797,6 @@ static void ehci_child_detach(USBPort *port, USBDevice *child)
if (portsc & PORTSC_POWNER) {
USBPort *companion = s->companion_ports[port->index];
companion->ops->child_detach(companion, child);
- companion->dev = NULL;
return;
}
OpenPOWER on IntegriCloud