From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Subject: Re: [PATCH] Clear previous interrupts after fifo is disabled Date: Thu, 8 Mar 2012 10:49:54 -0800 Message-ID: <20120308184954.GA1275@kroah.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-yw0-f46.google.com ([209.85.213.46]:48018 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753357Ab2CHSt7 (ORCPT ); Thu, 8 Mar 2012 13:49:59 -0500 Received: by yhmm54 with SMTP id m54so431776yhm.19 for ; Thu, 08 Mar 2012 10:49:59 -0800 (PST) Content-Disposition: inline In-Reply-To: Sender: linux-serial-owner@vger.kernel.org List-Id: linux-serial@vger.kernel.org To: Chanho Min Cc: Russell King , Alan Cox , Linus Walleij , Shreshtha Kumar Sahu , "Kim, Jong-Sung" , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org On Mon, Feb 27, 2012 at 06:30:20PM +0900, Chanho Min wrote: > This is another workaroud of 'https://lkml.org/lkml/2012/1/17/104' > with additional analysis.Bootloader can transfer control to kernel and > there are some pending interrupts. In this case, RXFE of the flag > register is set by clearing FEN(LCRH) even if rx data remains in the > fifo. It seems that the fifo's status is initiailized. Interrupt > handler can not get any data from data register because of the below > break condtion. > > pl011_fifo_to_tty > while (max_count--) { > if (status & UART01x_FR_RXFE) > break; This patch never seemed to be agreed on, so I'm not taking it. Can someone, if this is still needed, and everyone agrees on how to solve it, please send me the needed fix? thanks, greg k-h