summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-12-19 00:45:15 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-12-19 00:45:15 -0800
commit4bb7d538e47a4a67edbd603560e6a7e84673f6a6 (patch)
tree618658d0240e0a3a59036f441c657dd774082946
parentaf5b1d99f72134c3ff39dd546a28c1fd712b3058 (diff)
parent108e051cd48d4a79439bcfb517cc5cb659d34dfd (diff)
Merge "usb: gadget: Reset notify count to 0 upon completion for RNDIS"
-rw-r--r--drivers/usb/gadget/function/f_gsi.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/f_gsi.c b/drivers/usb/gadget/function/f_gsi.c
index 84b60ec771a4..8088593fad1a 100644
--- a/drivers/usb/gadget/function/f_gsi.c
+++ b/drivers/usb/gadget/function/f_gsi.c
@@ -1467,7 +1467,15 @@ static void gsi_ctrl_notify_resp_complete(struct usb_ep *ep,
event->bNotificationType, req->status);
/* FALLTHROUGH */
case 0:
- /*
+ /* no need to handle multiple resp available for RNDIS */
+ if (gsi->prot_id == IPA_USB_RNDIS) {
+ atomic_set(&gsi->c_port.notify_count, 0);
+ log_event_dbg("notify_count = %d",
+ atomic_read(&gsi->c_port.notify_count));
+ break;
+ }
+
+ /*
* handle multiple pending resp available
* notifications by queuing same until we're done,
* rest of the notification require queuing new