usb-ehci: fix ehci_child_detach
commit088351a7e50b7f14cda9520bcb8a7896e226aa36
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 23 Mar 2012 14:43:45 +0000 (23 15:43 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 17 Apr 2012 08:23:28 +0000 (17 10:23 +0200)
treee0013b9c9693bd6eb717c97bfd97a6fd0c3e7eca
parent529f8f9fa939b8db13bf5cd1cd549d993cf25cb8
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>
hw/usb/hcd-ehci.c