USB: dwc3: gadget.c: Use dev_err_ratelimit in ep_queue()
If there is a chance that function disable() gets delayed, in that
case, different function driver like f_fs.c driver endup queueing
request on OUT endpoint during disconnect. This results in ep_queue()
fails with -ESHUTDOWN and prints error message. Due to that, adb daemon
keeps on closing and reopening ep files and tries to queue request again.
This error print floods kernel log and results in watchdog timeout panic.
Fix it by ratelimiting error message to avoid flooding of kernel log.
Change-Id: I56b47960801df3b13902e93ba290120586157a97
Signed-off-by:
Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Loading
Please register or sign in to comment