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