xhci: Rate-limit XHCI_TRUST_TX_LENGTH quirk warning.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 25 Jul 2012 17:52:45 +0000 (10:52 -0700)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 7 Aug 2012 17:56:31 +0000 (10:56 -0700)
commit6602bf8d54aff1378b8b1acb0044f704ee466979
treefddb68a93b7d9c470bd17ac388cd89473bef22b8
parenta4a86fa1c12e5d9f9874b8d7325ade299b7721e8
xhci: Rate-limit XHCI_TRUST_TX_LENGTH quirk warning.

When we encounter an xHCI host that needs the XHCI_TRUST_TX_LENGTH
quirk, the xHCI driver ends up spewing messages about the quirk into
dmesg every time a short packet occurs.  Change the xHCI driver to
rate-limit such warnings.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Reported-by: Matthew Hall <mhall@mhcomputing.net>
Reported-by: Gary E. Miller <gem@rellim.com>
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.h