linux/drivers/usb/dwc3
Felipe Balbi 55016b9e60 usb: dwc3: gadget: fix set_halt() bug with pending transfers
[ Upstream commit 7a60855972 ]

According to our Gadget Framework API documentation,
->set_halt() *must* return -EAGAIN if we have pending
transfers (on either direction) or FIFO isn't empty (on
TX endpoints).

Fix this bug so that the mass storage gadget can be used
without stall=0 parameter.

This patch should be backported to all kernels since v3.2.

Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2014-11-14 09:00:11 -08:00
..
core.c usb: dwc3: core: fix ordering for PHY suspend 2014-10-05 14:52:20 -07:00
core.h usb: dwc3: fix randconfig build errors 2014-05-06 07:59:33 -07:00
debug.h usb: dwc3: switch to GPL v2 only 2013-07-29 13:56:44 +03:00
debugfs.c usb: dwc3: switch to GPL v2 only 2013-07-29 13:56:44 +03:00
dwc3-exynos.c usb: dwc3: fix the glue drivers using the nop phy 2013-12-19 09:27:41 -06:00
dwc3-keystone.c usb: dwc3: add Keystone specific glue layer 2013-12-12 13:43:07 -06:00
dwc3-omap.c usb: dwc3: omap: fix ordering for runtime pm calls 2014-10-05 14:52:15 -07:00
dwc3-pci.c usb: dwc3: fix the glue drivers using the nop phy 2013-12-19 09:27:41 -06:00
ep0.c usb: dwc3: gadget: fix set_halt() bug with pending transfers 2014-11-14 09:00:11 -08:00
gadget.c usb: dwc3: gadget: fix set_halt() bug with pending transfers 2014-11-14 09:00:11 -08:00
gadget.h usb: dwc3: gadget: fix set_halt() bug with pending transfers 2014-11-14 09:00:11 -08:00
host.c usb: dwc3: switch to GPL v2 only 2013-07-29 13:56:44 +03:00
io.h usb: dwc3: switch to GPL v2 only 2013-07-29 13:56:44 +03:00
Kconfig usb: dwc3: add Keystone specific glue layer 2013-12-12 13:43:07 -06:00
Makefile usb: dwc3: add Keystone specific glue layer 2013-12-12 13:43:07 -06:00
platform_data.h usb: dwc3: adapt to use dr_mode device tree helper 2013-07-29 13:56:51 +03:00