linux/drivers/usb/gadget/udc
Yoshihiro Shimoda 781001ff96 usb: gadget: udc: renesas_usb3: protect usb3_ep->started in usb3_start_pipen()
This patch fixes an issue that unexpected behavior happens when
both the interrupt handler and renesas_usb3_ep_enable() are called.
In this case, since usb3_start_pipen() checked the usb3_ep->started,
but the flags was not protected. So, this patch protects the flag
by usb3->lock. Since renesas_usb3_ep_enable() for EP0 will be not called,
this patch doesn't take care of usb3_start_pipe0().

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2017-07-18 16:20:31 +03:00
..
bdc usb: gadget: bdc: 64-bit pointer capability check 2017-06-19 09:22:31 +03:00
amd5536udc_pci.c usb: gadget: udc: make debug prints compatible with both pci and platform devices 2017-06-13 13:21:01 +03:00
amd5536udc.h usb: gadget: udc: Add Synopsys UDC Platform driver 2017-06-13 13:21:03 +03:00
at91_udc.c
at91_udc.h usb: Convert pr_warning to pr_warn 2016-11-03 10:38:36 +02:00
atmel_usba_udc.c usb: gadget: udc: atmel: Remove unnecessary macros 2017-06-19 09:22:45 +03:00
atmel_usba_udc.h usb: gadget: udc: atmel: Remove unnecessary macros 2017-06-19 09:22:45 +03:00
bcm63xx_udc.c
core.c usb: changes for v4.13 merge window 2017-06-20 11:39:34 +08:00
dummy_hcd.c usb: changes for v4.13 merge window 2017-06-20 11:39:34 +08:00
fotg210-udc.c usb: gadget: udc: constify usb_ep_ops structures 2017-01-24 11:04:24 +02:00
fotg210.h
fsl_mxc_udc.c
fsl_qe_udc.c usb: gadget: udc: constify usb_ep_ops structures 2017-01-24 11:04:24 +02:00
fsl_qe_udc.h
fsl_udc_core.c fsl_udc_core: add support for devices provided by fsl-mph-dr-of 2017-04-11 10:58:27 +03:00
fsl_usb2_udc.h usb: Convert pr_warning to pr_warn 2016-11-03 10:38:36 +02:00
fusb300_udc.c usb: gadget: udc: constify usb_ep_ops structures 2017-01-24 11:04:24 +02:00
fusb300_udc.h
goku_udc.c usb: gadget: udc: constify usb_ep_ops structures 2017-01-24 11:04:24 +02:00
goku_udc.h
gr_udc.c usb: gadget: udc: constify usb_ep_ops structures 2017-01-24 11:04:24 +02:00
gr_udc.h
Kconfig usb: gadget: udc: USB_SNP_CORE should depend on HAS_DMA 2017-07-17 11:00:26 +03:00
lpc32xx_udc.c
m66592-udc.c usb: gadget: udc: constify usb_ep_ops structures 2017-01-24 11:04:24 +02:00
m66592-udc.h
Makefile usb: gadget: udc: Add Synopsys UDC Platform driver 2017-06-13 13:21:03 +03:00
mv_u3d_core.c usb: gadget: mv_u3d: fix error handling in mv_u3d_probe() 2017-04-11 10:58:27 +03:00
mv_u3d.h
mv_udc_core.c usb: gadget: mv_udc: Handle return value of clk_prepare_enable. 2017-06-15 11:09:48 +03:00
mv_udc.h
net2272.c usb: add CONFIG_USB_PCI for system have both PCI HW and non-PCI based USB HW 2017-03-17 13:16:56 +09:00
net2272.h usb: add CONFIG_USB_PCI for system have both PCI HW and non-PCI based USB HW 2017-03-17 13:16:56 +09:00
net2280.c usb: changes for v4.13 merge window 2017-06-20 11:39:34 +08:00
net2280.h usb: gadget: net2280: Replace PCI pool old API 2017-03-16 18:03:31 +09:00
omap_udc.c usb: gadget: udc: constify usb_ep_ops structures 2017-01-24 11:04:24 +02:00
omap_udc.h usb: Convert pr_warning to pr_warn 2016-11-03 10:38:36 +02:00
pch_udc.c usb: gadget: udc: remove pointer dereference after free 2017-03-22 11:21:10 +02:00
pxa25x_udc.c
pxa25x_udc.h usb: Convert pr_warning to pr_warn 2016-11-03 10:38:36 +02:00
pxa27x_udc.c usb: gadget: pxa27x: Remove duplicate function prototype 2017-03-27 10:46:34 +03:00
pxa27x_udc.h
r8a66597-udc.c usb: gadget: udc: constify usb_ep_ops structures 2017-01-24 11:04:24 +02:00
r8a66597-udc.h
renesas_usb3.c usb: gadget: udc: renesas_usb3: protect usb3_ep->started in usb3_start_pipen() 2017-07-18 16:20:31 +03:00
s3c2410_udc.c usb: gadget: udc: s3c2410: remove unnecessary & operation 2016-11-03 10:38:27 +02:00
s3c2410_udc.h
s3c-hsudc.c usb: gadget: udc: constify usb_ep_ops structures 2017-01-24 11:04:24 +02:00
snps_udc_core.c usb: gadget: udc: Add Synopsys UDC Platform driver 2017-06-13 13:21:03 +03:00
snps_udc_plat.c usb: gadget: udc: start_udc() can be static 2017-07-18 09:31:57 +03:00
trace.c
trace.h
udc-xilinx.c usb: gadget: udc-xilinx: clean up a variable name 2017-05-17 14:17:25 +03:00