USB: dwc3-msm: Check endpoint status and request queued or not first

When function driver calls dwc3_msm_ep_queue() to queue an
endless request, check the endpoint status and also check whether any
request has been queued already. If a request is already queued prevent
any further queuing on the endpoint to prevent any endpoint failures.

Change-Id: I3d6a603c693d1df36719f57684ffad409e1a0e78
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
1 file changed