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

Commit 564e6be5 authored by Tarun Gupta's avatar Tarun Gupta Committed by Gerrit - the friendly Code Review server
Browse files

USB: rmnet: 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,
frmnet_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 frment_setup() API.

CRs-Fixed: 782966
Change-Id: I82fb30a7113ad61212d47835318701badadb289a
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
Signed-off-by: default avatarTarun Gupta <tarung@codeaurora.org>
parent 75d530af
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1078,6 +1078,7 @@ frmnet_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl)
					" req%02x.%02x v%04x i%04x l%d\n",
					ctrl->bRequestType, ctrl->bRequest,
					w_value, w_index, w_length);
				ret = 0;
				spin_unlock(&dev->lock);
				goto invalid;
			}