]> git.baikalelectronics.ru Git - kernel.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)
commitf8c62e75813b0277e91a97012ff0705d362b379f
treef48a150eab7daf572b36ac9e41be73b38ef298a3
parent3fc6867db746832d9f59d5308c112d766eea21f8
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