From: Julien Grall Subject: Re: [PATCH] drivers/exynos4210: Wait the end of last transfer before initializing the UART Date: Thu, 23 May 2013 14:40:30 +0100 Message-ID: <519E1C4E.4090803@linaro.org> References: <1369223456-3701-1-git-send-email-julien.grall@linaro.org> <1369310315.17830.38.camel@zakaz.uk.xensource.com> <1369310490.17830.39.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1369310490.17830.39.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: patches@linaro.org, xen-devel@lists.xen.org, Stefano.Stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On 05/23/2013 01:01 PM, Ian Campbell wrote: > On Thu, 2013-05-23 at 12:58 +0100, Ian Campbell wrote: >> On Wed, 2013-05-22 at 12:50 +0100, Julien Grall wrote: >>> When early printk is enabled by the user, it's possible to loose the last >>> characters if the UART is initialized without waiting that the last transfer >>> was completed. >> >> It might actually be useful to do this in early_printk, i.e. a new >> early_uart_flush or so called from puts and early_puts (or even just >> from the putch hook). > > BTW, my concern here is crashing without flushing the buffer and > therefore missing a useful message or having a misleading log... > > Right. The change is not complicate, so I will create early_uart_flush and call it in early_printk. -- Julien