Re: [PATCH] usb: at91_udc: correct hanging while disconnecting usb cable

From: David Brownell
Date: Thu Dec 06 2007 - 12:22:54 EST


On Thursday 06 December 2007, Nicolas Ferre wrote:
> Correct hanging while disconnecting the USB device
> cable. Prevent a race between vbus and UDP interrupts.
> This bug was tracked on at91sam9260ek boards.
>
> Signed-off-by: Nicolas Ferre <nicolas.ferre@xxxxxxxxxxxxx>
> ---
>
> 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.

Good, thanks for finding this. The bug was reported
recently, and obviously can't be reproduced except on
boards which *have* a VBUS interrupt!

I've signed off on this and suggested Greg merge it
before the 2.6.24-final freeze.

- Dave
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/