udc: Fix recursive spinlocks
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 29 May 2010 00:12:09 +0000 (00:12 +0000)
committerLars-Peter Clausen <lars@metafoo.de>
Sat, 29 May 2010 00:12:09 +0000 (00:12 +0000)
commitc88f0ac3906cf52ac444536341e7b6b9cac069d0
treeaec13ce6ddd36d23c7de98ffcdaba6c8d0458b85
parente66107e12b446f2948996ae5802f63bf8559ae18
udc: Fix recursive spinlocks

Driver had recursive spinlock locking: 1. jz4740_queue() acquires lock 2. done()
is called in chain:
jz4740_queue()->jz4740_ep0_kick()->jz4740_ep0_in()->write_fifo_ep0()->done() and
it tries to acquire same lock. 3. Deadlock.

Signed-off-by:
Yauhen Kharuzhy <jekhor@gmail.com>

SVN-Revision: 21619
target/linux/xburst/patches-2.6.34/056-udc.patch