commit | c12885c478533a97e9c0a45518b1c9893a7c6a2e | [log] [tgz] |
---|---|---|
author | Stephen Warren <swarren@wwwdotorg.org> | Sun Mar 08 11:08:14 2015 -0600 |
committer | Marek Vasut <marex@denx.de> | Tue Apr 14 05:47:59 2015 +0200 |
tree | db31dcc026995bcbb3da468eccd617ba8319ac4d | |
parent | 7100da3f643be260ac22f71a5707f0783947f458 [diff] |
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>