1ffd2723e8
Fix vhost crash (bz #918272) Fix kvm module permissions after first install (bz #907215)
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From 15e1636b0c32a0b4c0b85bc8b52ada681eb36a00 Mon Sep 17 00:00:00 2001
|
|
From: Hans de Goede <hdegoede@redhat.com>
|
|
Date: Thu, 1 Mar 2012 16:34:56 +0100
|
|
Subject: [PATCH] usb-ehci: Any packet completion except for NAK should set the
|
|
interrupt
|
|
|
|
As clearly stated in the 2.3.2 of the EHCI spec, any time USBERRINT get
|
|
sets then if the td has its IOC bit set USBINT should be set as well.
|
|
|
|
This means that for any status except for USB_RET_NAK we should set
|
|
USBINT if the IOC bit is set.
|
|
|
|
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
|
---
|
|
hw/usb-ehci.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/hw/usb-ehci.c b/hw/usb-ehci.c
|
|
index 11eded7..bc5f591 100644
|
|
--- a/hw/usb-ehci.c
|
|
+++ b/hw/usb-ehci.c
|
|
@@ -1338,7 +1338,7 @@ err:
|
|
q->qh.token ^= QTD_TOKEN_DTOGGLE;
|
|
q->qh.token &= ~QTD_TOKEN_ACTIVE;
|
|
|
|
- if ((q->usb_status >= 0) && (q->qh.token & QTD_TOKEN_IOC)) {
|
|
+ if ((q->usb_status != USB_RET_NAK) && (q->qh.token & QTD_TOKEN_IOC)) {
|
|
ehci_record_interrupt(q->ehci, USBSTS_INT);
|
|
}
|
|
}
|