Merge "usb: gadget: Reset notify count to 0 upon completion for RNDIS"

This commit is contained in:
Linux Build Service Account 2016-12-19 00:45:15 -08:00 committed by Gerrit - the friendly Code Review server
commit 4bb7d538e4

View file

@ -1467,6 +1467,14 @@ static void gsi_ctrl_notify_resp_complete(struct usb_ep *ep,
event->bNotificationType, req->status); event->bNotificationType, req->status);
/* FALLTHROUGH */ /* FALLTHROUGH */
case 0: 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 * handle multiple pending resp available
* notifications by queuing same until we're done, * notifications by queuing same until we're done,