[PATCH V3] tty: serial: imx.c: Reset UART before activating interrupts

Fabio Estevam festevam at gmail.com
Fri Jul 31 05:04:09 PDT 2015


On Fri, Jul 31, 2015 at 8:59 AM, David Jander <david at protonic.nl> wrote:
> If the UART has been in use before this driver was loaded, IRQs might be
> active and get fired as soon as we set the handler, which will crash
> in the spin_lock_irqsave(&sport->port.lock, flags) because port.lock is
> not initialized until the port is added at the end of probe.
>
> Signed-off-by: David Jander <david at protonic.nl>

Tested-by: Fabio Estevam <fabio.estevam at freescale.com>

Thanks



More information about the linux-arm-kernel mailing list