[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/9] ehci: Kick async schedule on wakeup in the non
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 5/9] ehci: Kick async schedule on wakeup in the non companion case |
Date: |
Mon, 9 Jul 2012 12:20:29 +0200 |
From: Hans de Goede <address@hidden>
Commit 0f588df8b3688b00e77aabaa32e26ece5f19bd39, added code
to ehci_wakeup to kick the async schedule on wakeup, but the else
was positioned wrong making it trigger for devices which are routed
to the companion rather then to the ehci controller itself.
This patch fixes this. Note that the "programming style" with using the
return at the end of the companion block matches how the companion case
is handled in the other ports ops, and is done this way for consistency.
Signed-off-by: Hans de Goede <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb/hcd-ehci.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
index f612610..080f62c 100644
--- a/hw/usb/hcd-ehci.c
+++ b/hw/usb/hcd-ehci.c
@@ -905,10 +905,11 @@ static void ehci_wakeup(USBPort *port)
USBPort *companion = s->companion_ports[port->index];
if (companion->ops->wakeup) {
companion->ops->wakeup(companion);
- } else {
- qemu_bh_schedule(s->async_bh);
}
+ return;
}
+
+ qemu_bh_schedule(s->async_bh);
}
static int ehci_register_companion(USBBus *bus, USBPort *ports[],
--
1.7.1
- [Qemu-devel] [PULL 0/9] usb patch queue, Gerd Hoffmann, 2012/07/09
- [Qemu-devel] [PATCH] usb: split endpoint init and reset, Gerd Hoffmann, 2012/07/09
- [Qemu-devel] [PATCH 5/9] ehci: Kick async schedule on wakeup in the non companion case,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 9/9] usb-host: add trace events for iso xfers, Gerd Hoffmann, 2012/07/09
- [Qemu-devel] [PATCH 1/9] ehci: fix ehci_qh_do_overlay, Gerd Hoffmann, 2012/07/09
- [Qemu-devel] [PATCH 7/9] usb: split endpoint init and reset, Gerd Hoffmann, 2012/07/09
- [Qemu-devel] [PATCH 6/9] usb-redir: Correctly handle the usb_redir_babble usbredir status, Gerd Hoffmann, 2012/07/09
- [Qemu-devel] [PATCH 4/9] usb-ehci: Fix an assert whenever isoc transfers are used, Gerd Hoffmann, 2012/07/09
- [Qemu-devel] [PATCH 8/9] usb: fix interface initialization, Gerd Hoffmann, 2012/07/09
- [Qemu-devel] [PATCH 3/9] ehci: don't flush cache on doorbell rings., Gerd Hoffmann, 2012/07/09
- [Qemu-devel] [PATCH 2/9] ehci: fix td writeback, Gerd Hoffmann, 2012/07/09
- Re: [Qemu-devel] [PULL 0/9] usb patch queue, Anthony Liguori, 2012/07/09