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

Commit 3d5af600 authored by Manu Gautam's avatar Manu Gautam Committed by Sriharsha Allenki
Browse files

USB: gadget: smd: Retry usb_req submission on resume



Controller driver might fail any usb_req submission when
BUS is in suspend state. If all usb_reqs are pending at
the driver level then on resume they never get queued
again and RX stall will be seen. Take care of this by
attempting to submit any idle rx usb_req on resume.

Change-Id: I4981da77fcb8359225c2f80510f924dc55c1e07b
CRs-fixed: 1017623
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent bb5a5822
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1061,6 +1061,7 @@ void gsmd_resume(struct gserial *gser, u8 portno)
	port->is_suspended = false;
	spin_unlock(&port->port_lock);
	queue_work(gsmd_wq, &port->pull);
	queue_work(gsmd_wq, &port->push);
}

void gsmd_cleanup(struct usb_gadget *g, unsigned count)