Skip to content
Commit e95044ba authored by David Jander's avatar David Jander Committed by Greg Kroah-Hartman
Browse files

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: default avatarDavid Jander <david@protonic.nl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e9b5a982
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment