diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-03-10 11:53:27 (GMT) |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-04-14 06:24:37 (GMT) |
commit | ca4d44ea2a91b922e1514f5ed77f6bcf3657fd67 (patch) | |
tree | 111a6dbc620970f95e698b9fc73c11abc104253f /drivers/usb/dwc3/gadget.h | |
parent | bc5081617faeb3b2f0c126dc37264b87af7da47f (diff) | |
download | linux-ca4d44ea2a91b922e1514f5ed77f6bcf3657fd67.tar.xz |
usb: dwc3: gadget: always enable CSP
CSP bit of TRB Control is useful for protocols such
CDC EEM/ECM/NCM where we're transferring in blocks
of MTU-sized requests (usually MTU is 1500 bytes).
We know we will always have a short packet after two
(for HS) wMaxPacketSize packets and, usually, we
will have a long(-ish) queue of requests (for our
g_ether gadget, we have at least 10
requests).
Instead of always stopping the queue processing to
interrupt, giveback and restart, let's tell dwc3 to
interrupt but continue processing following request
if we have anything already pending in the queue.
This gave me a considerable improvement of 40% on my
test setup.
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.h')
0 files changed, 0 insertions, 0 deletions