From: Hans de Goede <hdegoede@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] ehci: fix ehci_child_detach
Date: Mon, 26 Mar 2012 14:47:47 +0200 [thread overview]
Message-ID: <4F706573.3030905@redhat.com> (raw)
In-Reply-To: <1332765150-16810-1-git-send-email-kraxel@redhat.com>
Hi,
Oh, good one:
Acked-by: Hans de Goede <hdegoede@redhat.com>
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<kraxel@redhat.com>
> ---
> 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;
> }
>
prev parent reply other threads:[~2012-03-26 12:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-26 12:32 [Qemu-devel] [PATCH] ehci: fix ehci_child_detach Gerd Hoffmann
2012-03-26 12:47 ` Hans de Goede [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F706573.3030905@redhat.com \
--to=hdegoede@redhat.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.