xhci: Rate-limit XHCI_TRUST_TX_LENGTH quirk warning.
[linux-block.git] / drivers / usb / host / xhci-ring.c
index 8275645889da4ce779c08c88ac4ea06473f222e0..0c93f5dcea6f5e8a58c5542688f25d9aba9e0573 100644 (file)
@@ -2073,8 +2073,8 @@ static int handle_tx_event(struct xhci_hcd *xhci,
                if (xhci->quirks & XHCI_TRUST_TX_LENGTH)
                        trb_comp_code = COMP_SHORT_TX;
                else
-                       xhci_warn(xhci, "WARN Successful completion on short TX: "
-                                       "needs XHCI_TRUST_TX_LENGTH quirk?\n");
+                       xhci_warn_ratelimited(xhci,
+                                       "WARN Successful completion on short TX: needs XHCI_TRUST_TX_LENGTH quirk?\n");
        case COMP_SHORT_TX:
                break;
        case COMP_STOP: