]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb: dwc2: remove restriction on buffer length
authorStephen Warren <swarren@wwwdotorg.org>
Sun, 8 Mar 2015 17:08:14 +0000 (11:08 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:07 +0000 (21:47 +0200)
commit6afc3b4aad8e3c07cefbf317c64ee7c5db3150a5
tree650a4d328f2ce83af2ce34c8d216c20743102f92
parentca6277751055c3e95da6039061c049a774e25c76
usb: dwc2: remove restriction on buffer length

Each USB transfer is split up into chunks that are held in an aligned
buffer. This imposes a limit on the size of each chunk, but no limit on
the total size of transferred data. Fix the logic in chunk_msg() not to
reject large transfers, but simply take the size of the aligned buffer
into account when calculating the chunk size.

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
drivers/usb/host/dwc2.c