Merge "dwc3: gadget: Don't perform SET XFER resource with USB GSI endpoint"

This commit is contained in:
qctecmdr 2020-07-25 05:28:31 -07:00 • committed by Gerrit - the friendly Code Review server
commit bf2fe2b10e

View file

@ -621,7 +621,11 @@ static int dwc3_gadget_start_config(struct dwc3_ep *dep)
for (i = 0; i < DWC3_ENDPOINTS_NUM; i++) {
struct dwc3_ep *dep = dwc->eps[i];
if (!dep)
/*
* Don't set xfer resource with USB GSI endpoint as it is
* performed before enabling USB GSI endpoint.
*/
if (!dep || dep->gsi)
continue;
ret = dwc3_gadget_set_xfer_resource(dep);