]> git.baikalelectronics.ru Git - kernel.git/commit
USB: at91_udc: correct hanging while disconnecting usb cable
authorNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 13 Dec 2007 23:52:58 +0000 (15:52 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 17 Dec 2007 18:47:15 +0000 (10:47 -0800)
commit2cd494cf3606581b6cb1417b965e8e6a3e121957
treefc9cc0a4aab57dee2b30a8b145dfbb5ee3688388
parent1e5cd4234b73b889c0a6e1d0b58e4258e1c42a55
USB: at91_udc: correct hanging while disconnecting usb cable

Correct hanging while disconnecting the USB device cable.  Prevent a race
between vbus and UDP interrupts.  This bug was tracked on at91sam9260ek
boards.

A usb resume interrupt was firing after the vbus interrupt : the IP was
then already stoped and not able to deal with it (no more clock).  A simple
interrupt disabling is ok as the "end of bus reset" irq is non maskable and
ok to resume the USB device IP.

Signed-off-by: Nicolas Ferre <nicolas.ferre@rfo.atmel.com>
Acked-by: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/at91_udc.c