summary refs log tree commit diff
path: root/drivers/base/bus.c
diff options
context:
space:
mode:
authorIgor Kotrasinski <i.kotrasinsk@samsung.com>2015-09-15 16:55:32 +0200
committerFelipe Balbi <balbi@ti.com>2015-09-21 14:42:36 -0500
commit9a9ce1dfaef9aa15980cec22b806b39a65a9467e (patch)
treef5bafcb806b1fed4199e07c69612c37f62342684 /drivers/base/bus.c
parente42bd6a54b97e2a39b5004deac66a0fcd6ebbe75 (diff)
downloadlinux-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/base/bus.c')
0 files changed, 0 insertions, 0 deletions