]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/usb/dwc2/gadget.c
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)
committerFelipe Balbi <balbi@ti.com>
Tue, 22 Dec 2015 17:50:03 +0000 (11:50 -0600)
commit0676c7e734e3807f4e91f5d0edcaeed1f5ff412a
treea111cd1a0763d057dc1c225fd5fc5c59bdae6c67
parenta5beaaf39455e4388251e95ef2ce6849cabf3393
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

Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Du, Changbin <changbin.du@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/gadget.c