qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] ehci: fix ehci_child_detach


From: Hans de Goede
Subject: Re: [Qemu-devel] [PATCH] ehci: fix ehci_child_detach
Date: Mon, 26 Mar 2012 14:47:47 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120316 Thunderbird/11.0

Hi,

Oh, good one:

Acked-by: Hans de Goede <address@hidden>

Regards,

Hans



On 03/26/2012 02:32 PM, Gerd Hoffmann wrote:
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<address@hidden>
---
  hw/usb/hcd-ehci.c |    1 -
  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;
      }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]