USB: gadget: u_ether: Fix data stall issue in RNDIS tethering mode
authorBadhri Jagan Sridharan <Badhri@google.com>
Thu, 18 Sep 2014 17:42:41 +0000 (10:42 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:04 +0000 (13:52 -0800)
commit78281f6ed79413e5a16eac6edc4a72c6836ae5a9
tree5cf58a8e2bc4c2bbb3c69471889f605fd61021c2
parent265801537d110eb68d44a2f66015479908f635c0
USB: gadget: u_ether: Fix data stall issue in RNDIS tethering mode

For dual speed gadget, with current no. of request(10), there is
possibility of corner case occurence where all 10 reuqests are queued
to HW without setting IOC bit, which could lead to data stall in
RNDIS tethering and RNDIS local networking.

With this patch, counter will be incremented before queueing request to
HW and sets IOC bit for every nth request due to which the corner case
of all requests queued to HW without IOC bit set will be avoided.

Change-Id: I26515bfd9bbc8f7af38be7835692143f7093118a
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
drivers/usb/gadget/function/u_ether.c