]> err.no Git - linux-2.6/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)
commit08cbc706acd2dd601b0663e28fa97ffb0564e105
treefc9cc0a4aab57dee2b30a8b145dfbb5ee3688388
parent442258e2ff69276ff767f3703b30ce6a31fdd181
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