Blame 0202-usb-ehci-Fix-an-assert-whenever-isoc-transfers-are-u.patch
|
Hans de Goede |
ad6610 |
From 050146c8b005683cbc36a837844d2d637b27100c Mon Sep 17 00:00:00 2001
|
|
Hans de Goede |
ad6610 |
From: Hans de Goede <hdegoede@redhat.com>
|
|
Hans de Goede |
ad6610 |
Date: Fri, 6 Jul 2012 12:04:15 +0200
|
|
Hans de Goede |
ad6610 |
Subject: [PATCH] usb-ehci: Fix an assert whenever isoc transfers are used
|
|
Hans de Goede |
ad6610 |
|
|
Hans de Goede |
ad6610 |
hcd-ehci.c is missing an usb_packet_init() call for the ipacket UsbPacket
|
|
Hans de Goede |
ad6610 |
it uses for isoc transfers, triggering an assert (taking the entire vm down)
|
|
Hans de Goede |
ad6610 |
in usb_packet_setup as soon as any isoc transfers are done by a high speed
|
|
Hans de Goede |
ad6610 |
USB device.
|
|
Hans de Goede |
ad6610 |
|
|
Hans de Goede |
ad6610 |
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
|
Hans de Goede |
ad6610 |
---
|
|
Hans de Goede |
ad6610 |
hw/usb/hcd-ehci.c | 1 +
|
|
Hans de Goede |
ad6610 |
1 file changed, 1 insertion(+)
|
|
Hans de Goede |
ad6610 |
|
|
Hans de Goede |
ad6610 |
diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
|
|
Hans de Goede |
ad6610 |
index e759c99..eaa3ddd 100644
|
|
Hans de Goede |
ad6610 |
--- a/hw/usb/hcd-ehci.c
|
|
Hans de Goede |
ad6610 |
+++ b/hw/usb/hcd-ehci.c
|
|
Hans de Goede |
ad6610 |
@@ -2300,6 +2300,7 @@ static int usb_ehci_initfn(PCIDevice *dev)
|
|
Hans de Goede |
ad6610 |
s->frame_timer = qemu_new_timer_ns(vm_clock, ehci_frame_timer, s);
|
|
Hans de Goede |
ad6610 |
QTAILQ_INIT(&s->aqueues);
|
|
Hans de Goede |
ad6610 |
QTAILQ_INIT(&s->pqueues);
|
|
Hans de Goede |
ad6610 |
+ usb_packet_init(&s->ipacket);
|
|
Hans de Goede |
ad6610 |
|
|
Hans de Goede |
ad6610 |
qemu_register_reset(ehci_reset, s);
|
|
Hans de Goede |
ad6610 |
|
|
Hans de Goede |
ad6610 |
--
|
|
Hans de Goede |
ad6610 |
1.7.10.4
|
|
Hans de Goede |
ad6610 |
|