]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00154703 usb-gadget: fix spin_lock recursion problem at SMP platform
authorPeter Chen <peter.chen@freescale.com>
Wed, 10 Aug 2011 11:37:16 +0000 (19:37 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:06 +0000 (08:33 +0200)
commitef0518c1deecd24351288be6886cb93408e51d3f
tree83d4fa350552031734ed853eda2fdd523648a7e2
parent1027dda043d91dfc4044075c6d9804f7dc92b758
ENGR00154703 usb-gadget: fix spin_lock recursion problem at SMP platform

- The spin_lock is at interrupt handler, so all code routines
using at interrupt handler are forbidden to hold spin_lock again
- Move the code which needs to be protected by spin_lock to workqueue,
and it will be called when workqueue is scheduled.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
drivers/usb/gadget/arcotg_udc.c