diff options
author | Neil Zhang <zhangwm@marvell.com> | 2011-10-12 10:49:31 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-10-13 19:42:03 +0200 |
commit | 27cec2b2f7a4d2394af63a3dc7928975f4c072f4 (patch) | |
tree | 32b1c478bb32af364493528ab93d7de4a9b3398d /drivers/usb/gadget/r8a66597-udc.h | |
parent | usb: gadget: mv_udc: fix bug when handle setup package. (diff) | |
download | linux-27cec2b2f7a4d2394af63a3dc7928975f4c072f4.tar.xz linux-27cec2b2f7a4d2394af63a3dc7928975f4c072f4.zip |
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>
Diffstat (limited to 'drivers/usb/gadget/r8a66597-udc.h')
0 files changed, 0 insertions, 0 deletions