Re: [PATCH 3/3] usb: gadget: udc: renesas_usb3: protect usb3_ep->started in usb3_start_pipen()

2017-07-18 Thread Geert Uytterhoeven
On Tue, Jul 18, 2017 at 2:26 PM, Yoshihiro Shimoda wrote: > 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

[PATCH 3/3] usb: gadget: udc: renesas_usb3: protect usb3_ep->started in usb3_start_pipen()

2017-07-18 Thread Yoshihiro Shimoda
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