]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: mv_udc: add missing spinlock in ep enable/disable
authorNeil Zhang <zhangwm@marvell.com>
Wed, 12 Oct 2011 08:49:31 +0000 (16:49 +0800)
committerFelipe Balbi <balbi@ti.com>
Thu, 13 Oct 2011 17:42:03 +0000 (20:42 +0300)
commit79b36807f41b3c53986af934649e348c59b625b0
tree32b1c478bb32af364493528ab93d7de4a9b3398d
parentbdda9145d4ab716453cb7885920e9fd1a7f6bf37
usb: gadget: mv_udc: add missing spinlock in ep enable/disable

The ep enable / disable functions can be called from interrupt
context, and they are not race safe on SMP systems. The critical
data can be modified in more than one routing.
Make them race safe by using IRQ-safe spinlock functions.

Signed-off-by: Neil Zhang <zhangwm@marvell.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/mv_udc_core.c