]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] CPM_UART: Fix non-console transmit
authorKalle Pokki <kalle.pokki@iki.fi>
Wed, 1 Nov 2006 07:52:41 +0000 (09:52 +0200)
committerPaul Mackerras <paulus@samba.org>
Fri, 10 Nov 2006 10:26:40 +0000 (21:26 +1100)
commit9338c443389ac3ec8ed9b4a8f22160f20fe5481f
treef16b0060d002f22be5d061d82a2a210d90aa82d5
parent0ee1ed6b70b27ae8d345b39fe4075c874410a38e
[POWERPC] CPM_UART: Fix non-console transmit

The SMC and SCC hardware transmitter is enabled at the wrong
place. Simply writing twice to the non-console port, like

$ echo asdf > /dev/ttyCPM1
$ echo asdf > /dev/ttyCPM1

puts the shell into endless uninterruptible sleep, since the
transmitter is stopped after the first write, and is not enabled
before the shutdown function of the second write. Thus the transmit
buffers are never emptied.

Signed-off-by: Kalle Pokki <kalle.pokki@iki.fi>
Signed-off-by: Vitaly Bordug <vbordug@ru.mvista.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
drivers/serial/cpm_uart/cpm_uart_core.c