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

Commit 58d59039 authored by Mayank Rana's avatar Mayank Rana
Browse files

usb: gadget: gps: Handle case when response queue is empty



When there is no packet available in response queue on device
side and host requests for GET_ENCAPSULATED response on control
endpoint, gps_setup() API returns as -EOPNOTSUPP. This results
into controller driver stalling EP0 OUT endpoint which host
side driver may not expected. Hence to avoid this stalling of
EP0 OUT endpoint returns zero instead of -EOPNOTSUPP from
gps_setup() API.

Also use pr_debug() instead of pr_err() when there is no control
response packet available as it is not actual error but condition
where there is no data available to send.

CRs-Fixed: 995861
Change-Id: I6ac58ba5d1cb895f5d49e5df3f4d7257dc9a628c
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent fbfdd7c9
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