[PATCH] CPM_UART: Fix non-console transmit

Vitaly Bordug vbordug at ru.mvista.com
Wed Nov 1 02:08:16 EST 2006


On Thu, 19 Oct 2006 15:52:11 +0300 (EEST)
Kalle Pokki <kalle.pokki at iki.fi> wrote:

> 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 at iki.fi>
Signed-off-by: Vitaly Bordug <vbordug at ru.mvista.com>

Paul: please apply. 

I am recalling addressing something like the upper, but dunno why it haven't pushed 
upstream. Something around re-use scc/smc did not feel good with this approach, but it is 
much less important than the odd behavior expressed.

-- 
Sincerely, 
Vitaly



More information about the Linuxppc-embedded mailing list