Merge "usb: gadget: Reset notify count to 0 upon completion for RNDIS"
This commit is contained in:
commit
4bb7d538e4
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue