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

Commit 020f3834 authored by Sriharsha Allenki's avatar Sriharsha Allenki Committed by Ajay Agarwal
Browse files

usb: gadget: f_gps: Do not clean up response queue on suspend



The current driver cleans up the response queue on suspend.
This results in data loss. Fix this by not clearing the
responses on suspend and wakeup the host if any response
is available. And the response is also dropped if there
is an enqueuing error on interrupt endpoint which might
lead to data loss. Fix this by not dropping the response
on error.
If the device is suspended and remote wakeup is not
enabled, all the responses will be queued and may lead
to a memory shortage. Fix this by limiting the responses
that can be queued.

CRs-Fixed: 2109762
Change-Id: I4390602875d3e85f333b107b058e299f973c837c
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent a74a42c2
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