usb: dwc3: gadget: Rate limit error message within ep_dequeue() API

With USB QDSS software path disable case, usb_qdss_close() API tries to
dequeue all queued USB requests which may have been already moved to
cancelled list and unlikely available as those may have been already
given back from end xfer command. There are more than 200 USB request
and quick enable/disable of USB QDSS software path results into error
message flooding serial console possibly causign watchdog timeout.
Hence rate limit error message with ep_dequeue() API.

Change-Id: I78dbffc5ec5e1b5d8d0df91da6aded398c988be9
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
This commit is contained in:
Mayank Rana 2020-07-22 18:04:38 -07:00
commit b0ffe3d223

View file

@ -1738,7 +1738,7 @@ static int dwc3_gadget_ep_dequeue(struct usb_ep *ep,
}
}
dev_err(dwc->dev, "request %pK was not queued to %s\n",
dev_err_ratelimited(dwc->dev, "request %pK was not queued to %s\n",
request, ep->name);
ret = -EINVAL;
out: