xhci: Add Etron XHCI_TRUST_TX_LENGTH quirk.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 2 Jul 2012 20:36:23 +0000 (13:36 -0700)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 7 Aug 2012 17:56:31 +0000 (10:56 -0700)
commit5cb7df2b2d3afee7638b3ef23a5bcb89c6f07bd9
tree8a8c150ced7c6e48d3ee0217e68569a9b675de5a
parent22ceac191211cf6688b1bf6ecd93c8b6bf80ed9b
xhci: Add Etron XHCI_TRUST_TX_LENGTH quirk.

Gary reports that with recent kernels, he notices more xHCI driver
warnings:

xhci_hcd 0000:03:00.0: WARN Successful completion on short TX: needs XHCI_TRUST_TX_LENGTH quirk?

We think his Etron xHCI host controller may have the same buggy behavior
as the Fresco Logic xHCI host.  When a short transfer is received, the
host will mark the transfer as successfully completed when it should be
marking it with a short completion.

Fix this by turning on the XHCI_TRUST_TX_LENGTH quirk when the Etron
host is discovered.  Note that Gary has revision 1, but if Etron fixes
this bug in future revisions, the quirk will have no effect.

This patch should be backported to kernels as old as 2.6.36, that
contain a backported version of commit
1530bbc6272d9da1e39ef8e06190d42c13a02733 "xhci: Add new short TX quirk
for Fresco Logic host."

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Reported-by: Gary E. Miller <gem@rellim.com>
Cc: stable@vger.kernel.org
drivers/usb/host/xhci-pci.c