[PATCH] Updated: Fix soft lockup in at91 udc driver

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Tue Jan 19 03:53:04 EST 2010


Hello,

On Fri, Jan 15, 2010 at 08:50:14AM +1300, Ryan Mallon wrote:
> Fix a potential soft lockup in the AT91 UDC driver by ensuring that the
> UDC clock is enabled inside the interrupt handler. If the UDC clock is
> not enabled then the UDC registers cannot be written to and the
> interrupt cannot be cleared or masked.
Wouldn't it be cleaner to assert that the clock is already on when an
irq comes in?  That is enable the clock and let it enabled when
configuring the device to generate irqs?

Just my 2¢
Uwe

-- 
Pengutronix e.K.                              | Uwe Kleine-König            |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |



More information about the linux-arm-kernel mailing list