]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tty: serial: imx.c: Reset UART before activating interrupts
authorDavid Jander <david@protonic.nl>
Thu, 2 Jul 2015 14:29:49 +0000 (16:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jul 2015 00:39:08 +0000 (17:39 -0700)
commite95044ba4fee93f5ea8a1a24b2d921e148503833
treef48a150eab7daf572b36ac9e41be73b38ef298a3
parente9b5a9825f6b02a9cf86697bcffafd3d7898f9f6
tty: serial: imx.c: Reset UART before activating interrupts

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@protonic.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c