diff options
author | Igor Kotrasinski <i.kotrasinsk@samsung.com> | 2015-09-15 16:55:32 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-09-21 14:42:36 -0500 |
commit | 9a9ce1dfaef9aa15980cec22b806b39a65a9467e (patch) | |
tree | f5bafcb806b1fed4199e07c69612c37f62342684 /drivers/usb/phy/Makefile | |
parent | e42bd6a54b97e2a39b5004deac66a0fcd6ebbe75 (diff) | |
download | op-kernel-dev-9a9ce1dfaef9aa15980cec22b806b39a65a9467e.zip op-kernel-dev-9a9ce1dfaef9aa15980cec22b806b39a65a9467e.tar.gz |
usb: gadget: dummy_hcd: in transfer(), return data sent, not limit
dummy_timer uses transfer() to update transfer limit. However,
limit passed to dummy_timer changes depending on transfer type,
so the actual limit is overwritten.
This can cause unpredictably slow / fast bulk transfers when
coupled with control / interrupt transfers.
Fix by returning actual amount of data sent in transfer() and
substracting from total.
Signed-off-by: Igor Kotrasinski <i.kotrasinsk@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy/Makefile')
0 files changed, 0 insertions, 0 deletions