summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2018-11-14 10:47:48 +0100
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-11-26 09:06:32 +0200
commit772a7a724f69d258025fedd87dde1aafe4171aef (patch)
tree5e104d07a9fa9e667a5b08c7cf378089cea2ce94 /drivers/usb/dwc3
parent7f7c548c5f652375a61c1072bac3db11f7a48326 (diff)
downloadlinux-772a7a724f69d258025fedd87dde1aafe4171aef.tar.bz2
usb: gadget: f_fs: Allow scatter-gather buffers
Some protocols implemented in userspace with FunctionFS might require large buffers, e.g. 64kB or more. Currently the said memory is allocated with kmalloc, which might fail should system memory be highly fragmented. On the other hand, some UDC hardware allows scatter-gather operation and this patch takes advantage of this capability: if the requested buffer is larger than PAGE_SIZE and the UDC allows scatter-gather operation, then the buffer is allocated with vmalloc and a scatterlist describing it is created and passed to usb request. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3')
0 files changed, 0 insertions, 0 deletions