UPSTREAM: usb: dwc2: fix transfer stop programming for out endpoint
authorDu, Changbin <changbin.du@intel.com>
Fri, 4 Dec 2015 07:38:23 +0000 (15:38 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 3 Jan 2017 10:47:42 +0000 (18:47 +0800)
commit43d87e60ebae4f8b6bc9be89aeb5d541547f6d55
treef0a93f6b1e631ca2786ab22e2b8e3bcd04414c0b
parent5f4369f3769c424db44d2ecfc4f8329868f16813
UPSTREAM: usb: dwc2: fix transfer stop programming for out endpoint

To stop an out endpoint, software should set sets the Global OUT NAK,
but not the Global Non-periodic IN NAK. This driver bug leads the out-ep
failed be in disabled state with below error.

dwc2_hsotg_ep_stop_xfr: timeout DOEPCTL.EPDisable

Change-Id: I5f8cc03a2a8c33311d9caf76fd028d15c66e58a8
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Du, Changbin <changbin.du@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit 0676c7e734e3807f4e91f5d0edcaeed1f5ff412a)
drivers/usb/dwc2/gadget.c