]> git.baikalelectronics.ru Git - kernel.git/commit
tty: xuartps: Force enable the UART in xuartps_console_write
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 17 Oct 2013 21:08:09 +0000 (14:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Oct 2013 02:47:38 +0000 (19:47 -0700)
commit0a6537bae31df577a5d15815fbfe0421b69680d6
tree56b68cd0b26533e32217333e5e0ff4cfa460ec63
parent37287d576bcf60b71b88c989ee944bb57e2fa814
tty: xuartps: Force enable the UART in xuartps_console_write

It is possible that under certain circumstances xuartps_console_write is entered
while the UART disabled. When this happens the code will busy loop in
xuartps_console_putchar, since the character is never written and the TXEMPTY
flag is never set. The result is a system lockup. This patch force enables the
UART for the duration of xuartps_console_write to avoid this.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: John Linn <john.linn@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c