Revert "UPSTREAM: usb: dwc3: gadget: disable XFER_NOT_READY"
authorWu Liang feng <wulf@rock-chips.com>
Tue, 6 Sep 2016 03:35:57 +0000 (11:35 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 7 Sep 2016 03:50:25 +0000 (11:50 +0800)
commit9438d4e7707522607420aea10b53a4ee153407e2
treee3ea9e5f15f273755e4679e8a6e4e369cfe10dbd
parent331df16f95d04b1a66a74505b08176e489490abe
Revert "UPSTREAM: usb: dwc3: gadget: disable XFER_NOT_READY"

This reverts commit 2a1f2d1e890354821dd8a8e621998d532185061d.

Refer to DWC3 databook, Table 7-7 Device Endpoint-n Events(DEPEVT),
XferNotReady is generated when the core responds NRDY to the host
on the USB. It is useful in the beginning of a transfer when
software wants to wait for the host to start polling the endpoint
before setting up TRBs. And also refer to 8.2.4 Transfer Setup
Recommendations, when using on-demand transfers, the XferNotRead
event must be enabled.

TEST=Set usb gadget work as RNDIS, connect to win7/win10, check
the RNDIS function

Change-Id: I091cd3ff4a3c93e6cc02fcc6714511c8989786bf
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/dwc3/gadget.c