summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorAzhar Shaikh <azhars@codeaurora.org>2015-12-18 12:07:17 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:07:01 -0700
commit13e9b08d2d5126da1e7ebd2854eca1af77cd6551 (patch)
tree00c46519a0ff7b58b0721e4e7c81656d7cdbc3d3 /drivers/usb
parent9230a73e6bbdfc4010d041e6437c48aa078b61f3 (diff)
Revert "usb: dwc3: Reset the transfer resource index on SET_INTERFACE"
commit a0c760181ca874 ("usb: dwc3: Reset the transfer resource index on SET_INTERFACE") was resetting the start_config_issued flag on receiving SetInterface request. But in cases where transfer resource index is shared between two endpoints and if both are trying to do a transfer then transfer on one of the endpoints will fail, since the transfer resource index will be acquired by the first endpoint and when the second endpoint tries to get the same transfer resource index, it will fail and hence STARTTRANSFER command also fails on second endpoint. Reverting this change ensures endpoints get allocated with unique transfer resource index. CRs-fixed: 953585 Change-Id: I7800356e455900cc39b9463366275c68db777199 Signed-off-by: Azhar Shaikh <azhars@codeaurora.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/dwc3/ep0.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c
index 6bb5eeca6af7..283f648a5e05 100644
--- a/drivers/usb/dwc3/ep0.c
+++ b/drivers/usb/dwc3/ep0.c
@@ -774,7 +774,6 @@ static int dwc3_ep0_std_request(struct dwc3 *dwc, struct usb_ctrlrequest *ctrl)
break;
case USB_REQ_SET_INTERFACE:
dwc3_trace(trace_dwc3_ep0, "USB_REQ_SET_INTERFACE");
- dwc->start_config_issued = false;
/* Fall through */
default:
dwc3_trace(trace_dwc3_ep0, "Forwarding to gadget driver");