Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d8d55bae authored by Manu Gautam's avatar Manu Gautam Committed by Gerrit - the friendly Code Review server
Browse files

usb: gadget: f_mbim: Use notify_req_queued instead of notify_count



Driver currently relies on notify_count to figure out whether
notification on interrupt endpoint has to be sent or not. This
counter is increased when response is received and decreased on
notify_complete. As subsequent notifications are supposed to
be sent on response_complete, it becomes difficult to make the
decision of queuing based on notify_count. Simplify this logic
by keeping track of notify_request_queued and using that to
submit pending notifications. Also, don't queue any response
from mbim_write if responses are already present and let
response_complete queue it.

Change-Id: I59277e241b471e7ad34854b673548554fd237f1f
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent b25a759a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment