Re: [PATCH] usb: add Freescale QE/CPM USB peripheral controller driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Anton Vorontsov
Date: Monday, September 1, 2008 - 9:34 am

On Thu, Aug 28, 2008 at 05:43:33PM +0800, Li Yang wrote:

Just found a recursive locking bug:

[...]

Note: this function is called from the IRQ, the IRQ handler
grabs udc->lock spinlock..


In the disconnect(), g_ether driver will immediately call
qe_ep_disable() function which will try to grab &udc->lock
spinlock once again..

Not sure how to fix this properly... :-/

p.s. the same bug exists in omap_udc.c, pxa27x_udc.c and probably
other drivers as well... The only reason why it does not exploit
in most cases is that the spin_lock_irqsave for !SMP case turns
into simple local_irq_save().

-- 
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] usb: add Freescale QE/CPM USB peripheral contr ..., Anton Vorontsov, (Mon Sep 1, 9:34 am)