summaryrefslogtreecommitdiff
path: root/include/linux/etherdevice.h
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2014-02-24 20:04:11 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:06:21 -0700
commitd675e701902c11a326e6ce2682f8acb09fd89c98 (patch)
tree0400f4b6425fe2fce22ff789bcf7422e5a15de96 /include/linux/etherdevice.h
parent0b937c189f0218bcbee4ceeec090d43237e93b13 (diff)
usb: dwc3: gadget: Handle erratic error event only once
DWC3 databook suggests that upon receiving erratic error event software should reset the controller. The way in which the driver currently handles interrupts by offloading event processing to a threaded handler could result in a long sequence of received erratic errors in the event queue. dwc3_gadget_interrupt() could then end up processing a large number of the same event unnecessarily. In the case of dwc3-msm, this results in KERN_INFO messages flooding the console. Fix this by only handling erratic error once. Add a state variable to keep track of when it is seen, and clear it once a non-error event is processed. Change-Id: I5deeb2a614f9002867472a0e4aa26a61f0413ceb Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'include/linux/etherdevice.h')
0 files changed, 0 insertions, 0 deletions