[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/8] xhci: Add support for packets with both data an
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 5/8] xhci: Add support for packets with both data and an error status |
Date: |
Fri, 9 Nov 2012 10:05:48 +0100 |
From: Hans de Goede <address@hidden>
Signed-off-by: Hans de Goede <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb/hcd-xhci.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index d4a2e0c..a181d45 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -1388,7 +1388,7 @@ static void xhci_xfer_report(XHCITransfer *xfer)
XHCIState *xhci = xfer->xhci;
int i;
- left = xfer->packet.status ? 0 : xfer->packet.actual_length;
+ left = xfer->packet.actual_length;
for (i = 0; i < xfer->trb_count; i++) {
XHCITRB *trb = &xfer->trbs[i];
@@ -1416,7 +1416,7 @@ static void xhci_xfer_report(XHCITransfer *xfer)
if (!reported && ((trb->control & TRB_TR_IOC) ||
(shortpkt && (trb->control & TRB_TR_ISP)) ||
- (xfer->status != CC_SUCCESS))) {
+ (xfer->status != CC_SUCCESS && left == 0))) {
event.slotid = xfer->slotid;
event.epid = xfer->epid;
event.length = (trb->status & 0x1ffff) - chunk;
--
1.7.1
- [Qemu-devel] [PULL 0/8] usb patch queue, Gerd Hoffmann, 2012/11/09
- [Qemu-devel] [PATCH 2/8] usb-redir: Allow packets to have both data and an error-status, Gerd Hoffmann, 2012/11/09
- [Qemu-devel] [PATCH 8/8] ehci: fix migration, Gerd Hoffmann, 2012/11/09
- [Qemu-devel] [PATCH 5/8] xhci: Add support for packets with both data and an error status,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 6/8] usb/combined-packet: Move freeing of combined to usb_combined_packet_remove(), Gerd Hoffmann, 2012/11/09
- [Qemu-devel] [PATCH 4/8] ehci: Add support for packets with both data and an error status, Gerd Hoffmann, 2012/11/09
- [Qemu-devel] [PATCH 7/8] xhci: Fix some DMA host endian bugs, Gerd Hoffmann, 2012/11/09
- [Qemu-devel] [PATCH 3/8] ehci: Get rid of the magical PROC_ERR status, Gerd Hoffmann, 2012/11/09
- [Qemu-devel] [PATCH 1/8] usb: split packet result into actual_length + status, Gerd Hoffmann, 2012/11/09
- Re: [Qemu-devel] [PULL 0/8] usb patch queue, Anthony Liguori, 2012/11/14