usb: gadget: f_mbim: Fix extra decrement of notify_count on resume
If usb_request for notification was already queued before bus_suspend
then re-queuing the same on bus_resume fails with -EBUSY. Driver
currently decrements notify_count on error making it negative. This
causes driver to always hold one notification which is sent later
when host send next command. Fix this by not decrementing notify_count
if func_ep_queue failed with -EBUSY.
CRs-fixed: 1028997
Change-Id: I88b298c96f01b4fca7ddd86e081a30ba2ae1d38b
Signed-off-by:
Manu Gautam <mgautam@codeaurora.org>
Loading
Please register or sign in to comment