summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc/bdc
diff options
context:
space:
mode:
authorIgor Kotrasinski <i.kotrasinsk@samsung.com>2015-09-15 17:55:32 +0300
committerFelipe Balbi <balbi@ti.com>2015-09-21 22:42:36 +0300
commit9a9ce1dfaef9aa15980cec22b806b39a65a9467e (patch)
treef5bafcb806b1fed4199e07c69612c37f62342684 /drivers/usb/gadget/udc/bdc
parente42bd6a54b97e2a39b5004deac66a0fcd6ebbe75 (diff)
downloadlinux-9a9ce1dfaef9aa15980cec22b806b39a65a9467e.tar.xz
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/gadget/udc/bdc')
0 files changed, 0 insertions, 0 deletions