From: Igor Kotrasinski Date: Tue, 15 Sep 2015 14:55:32 +0000 (+0200) Subject: usb: gadget: dummy_hcd: in transfer(), return data sent, not limit X-Git-Tag: omap-for-v4.3/fixes-rc5~79^2~11^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a9ce1dfaef9aa15980cec22b806b39a65a9467e;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed