From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from buildserver.ru.mvista.com (unknown [85.21.88.6]) by ozlabs.org (Postfix) with ESMTP id 696E467BDC for ; Wed, 1 Nov 2006 02:08:17 +1100 (EST) Date: Tue, 31 Oct 2006 18:08:16 +0300 From: Vitaly Bordug To: Paul Mackerras Subject: Re: [PATCH] CPM_UART: Fix non-console transmit Message-ID: <20061031180816.3d32c285@vitb.ru.mvista.com> In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: Laurent, linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 19 Oct 2006 15:52:11 +0300 (EEST) Kalle Pokki 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 Signed-off-by: Vitaly Bordug 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