UPSTREAM: usb: dwc3: Set the ClearPendIN bit on Clear Stall EP command
authorJohn Youn <johnyoun@synopsys.com>
Wed, 1 Jun 2016 00:49:56 +0000 (17:49 -0700)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commitf7a41e1c5cac9b3f85e79efb0e10090347e6ab53
tree16c4b4abfac24387997a527978b61efb029cbbf7
parent657382feecd9b8deb7af35968f76fc1a756b3924
UPSTREAM: usb: dwc3: Set the ClearPendIN bit on Clear Stall EP command

As of core revision 2.60a the recommended programming model is to set
the ClearPendIN bit when issuing a Clear Stall EP command for IN
endpoints. This is to prevent an issue where some (non-compliant) hosts
may not send ACK TPs for pending IN transfers due to a mishandled error
condition. Synopsys STAR 9000614252.

Change-Id: Ic513ca50aa900fbfc64b8197a6311113630ce18a
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit 50c763f8c1bac0dc00f7788a75f227276c0efd54)
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c