summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3/gadget.h
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2016-03-10 12:40:31 (GMT)
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-04-14 06:24:37 (GMT)
commit8495036e986bdc7e82523d47097e7833d2782ff9 (patch)
tree08413e1f3ab879cf8ce473c771fa712871293d06 /drivers/usb/dwc3/gadget.h
parentca4d44ea2a91b922e1514f5ed77f6bcf3657fd67 (diff)
downloadlinux-8495036e986bdc7e82523d47097e7833d2782ff9.tar.xz
usb: dwc3: increase maximum number of TRBs per endpoint
previously we were using a maximum of 32 TRBs per endpoint. With each TRB being 16 bytes long, we were using 512 bytes of memory for each endpoint. However, SLAB/SLUB will always allocate PAGE_SIZE chunks. In order to better utilize the memory we allocate and to allow deeper queues for gadgets which would benefit from it (g_ether comes to mind), let's increase the maximum to 256 TRBs which rounds up to 4096 bytes for each endpoint. 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