linux_old1/drivers/usb/renesas_usbhs
Yoshihiro Shimoda dfb87b8bfe usb: renesas_usbhs: gadget: fix re-enabling pipe without re-connecting
This patch fixes an issue that the renesas_usbhs driver in gadget mode
cannot work correctly even if I disabled DMAC of the driver when I used
the g_zero driver and the testusb tool.

When a usb cable is re-connected, the renesas_usbhs driver calls the
usbhsp_flags_init() (via usbhs_hotplug() --> usbhs_mod_call(start) -->
usbhsg_try_start() --> usbhs_pipe_init()). However, the driver doesn't
call the usbhsp_flags_init() when usbhsg_ep_disable() is called.
So, if a gadget driver calls usb_ep_enable() and usb_ep_disable() again
and again, the renesas_usbhs driver will output the following log:

  renesas_usbhs renesas_usbhs: can't get pipe (BULK)
  renesas_usbhs renesas_usbhs: wrong recip request

Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2014-07-10 08:36:49 -05:00
..
Kconfig Remove GENERIC_HARDIRQ config option 2013-09-13 15:09:52 +02:00
Makefile usb: gadget: renesas_usbhs: fixup driver compile style 2011-10-13 20:41:54 +03:00
common.c usb: renesas_usbhs: use platform_{get,set}_drvdata() 2013-08-27 21:35:23 -07:00
common.h usb: renesas_usbhs: gadget: add usb_gadget_ops :: pullup support 2012-10-16 13:09:50 +03:00
fifo.c usb: renesas_usbhs: fifo: request DMAEngine once 2013-12-12 13:43:34 -06:00
fifo.h usb: renesas: remove unused DMA_ADDR_INVALID 2013-03-18 11:18:13 +02:00
mod.c usb: gadget: patches for v3.8 2012-11-11 17:31:53 -08:00
mod.h renesas_usbhs: cleanup quoted includes 2012-06-05 10:15:25 +02:00
mod_gadget.c usb: renesas_usbhs: gadget: fix re-enabling pipe without re-connecting 2014-07-10 08:36:49 -05:00
mod_host.c usb: hcd: move controller wakeup setting initialization to individual driver 2013-12-08 18:06:46 -08:00
pipe.c usb: renesas_usbhs: gadget: fix re-enabling pipe without re-connecting 2014-07-10 08:36:49 -05:00
pipe.h usb: renesas_usbhs: gadget: fix re-enabling pipe without re-connecting 2014-07-10 08:36:49 -05:00