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,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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue