usb: dwc2: gadget: Fix transfer stop programming for out endpoint
authorVardan Mikayelyan <mvardan@synopsys.com>
Thu, 26 May 2016 01:07:02 +0000 (18:07 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 21 Jun 2016 07:49:13 +0000 (10:49 +0300)
commit6b58cb07a850f9b6d348feb2455b2c264a515f4a
tree7bb6f0d0b6f1604a7535f5c625573ce83829c418
parent26ddef5da62993fb9189a822d3545fc00451d242
usb: dwc2: gadget: Fix transfer stop programming for out endpoint

According DWC-OTG databook, "GOUTNakEff" is read only and can be
cleared only by "DCTL.CGOUTNak", but here we do not need to clear
it because DWC-OTG programming guide says that before disabling
any OUT endpoint, the application must enable Global OUT NAK mode,
so if this mode is enabled we can continue without this step.

Tested-by: John Keeping <john@metanate.com>
Signed-off-by: Vardan Mikayelyan <mvardan@synopsys.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c