git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
USB: UHCI: Don't test the Short Packet Detect bit
[pandora-kernel.git]
/
drivers
/
usb
/
host
/
uhci-q.c
diff --git
a/drivers/usb/host/uhci-q.c
b/drivers/usb/host/uhci-q.c
index
c9d72ac
..
66c3f61
100644
(file)
--- a/
drivers/usb/host/uhci-q.c
+++ b/
drivers/usb/host/uhci-q.c
@@
-943,7
+943,9
@@
static int uhci_result_common(struct uhci_hcd *uhci, struct urb *urb)
/* We received a short packet */
if (urb->transfer_flags & URB_SHORT_NOT_OK)
ret = -EREMOTEIO;
- else if (ctrlstat & TD_CTRL_SPD)
+
+ /* Fixup needed only if this isn't the URB's last TD */
+ else if (&td->list != urbp->td_list.prev)
ret = 1;
}