OSDN Git Service

Revert "usb: dwc3: Reset the transfer resource index on SET_INTERFACE"
authorAzhar Shaikh <azhars@codeaurora.org>
Fri, 18 Dec 2015 20:07:17 +0000 (12:07 -0800)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:07:01 +0000 (11:07 -0700)
commit13e9b08d2d5126da1e7ebd2854eca1af77cd6551
tree00c46519a0ff7b58b0721e4e7c81656d7cdbc3d3
parent9230a73e6bbdfc4010d041e6437c48aa078b61f3
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>
drivers/usb/dwc3/ep0.c