USB: UHCI: Don't test the Short Packet Detect bit

Apparently some UHCI controllers change the value of the Short Packet
Detect (SPD) bit in the TD status word -- presumably when they receive a
short packet. This patch (as759) changes uhci-hcd to avoid assuming
that the bit is unchanged; in fact, the driver no longer looks at SPD at
all.

This fixes the second problem reported in Bugzilla #6752.


Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>


authored by Alan Stern and committed by Greg Kroah-Hartman f443ddf1 de1caa47

+3 -1
+3 -1
drivers/usb/host/uhci-q.c
··· 943 943 /* We received a short packet */ 944 944 if (urb->transfer_flags & URB_SHORT_NOT_OK) 945 945 ret = -EREMOTEIO; 946 - else if (ctrlstat & TD_CTRL_SPD) 946 + 947 + /* Fixup needed only if this isn't the URB's last TD */ 948 + else if (&td->list != urbp->td_list.prev) 947 949 ret = 1; 948 950 } 949 951