From: Tim Deegan Subject: Re: [PATCH v1] xen/arm: Manage pl011 uart TX interrupt correctly Date: Thu, 11 Dec 2014 13:15:53 +0100 Message-ID: <20141211121553.GB53811@deinos.phlegethon.org> References: <1418099995-22777-1-git-send-email-vijay.kilari@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1418099995-22777-1-git-send-email-vijay.kilari@gmail.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: vijay.kilari@gmail.com Cc: Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com, Prasun.Kapoor@caviumnetworks.com, manish.jaggi@caviumnetworks.com, julien.grall@linaro.org, xen-devel@lists.xen.org, stefano.stabellini@citrix.com, Vijaya Kumar K List-Id: xen-devel@lists.xenproject.org At 10:09 +0530 on 09 Dec (1418116195), vijay.kilari@gmail.com wrote: > From: Vijaya Kumar K > > In pl011.c, when TX interrupt is received > serial_tx_interrupt() is called to push next > characters. If TX buffer is empty, serial_tx_interrupt() > does not disable TX interrupt and hence pl011 UART > irq handler pl011_interrupt() always sees TX interrupt > status set in MIS register and cpu does not come out of > UART irq handler. > > With this patch, mask TX interrupt by writing 0 to > IMSC register when TX buffer is empty and unmask by > writing 1 to IMSC register before sending characters. > > Signed-off-by: Vijaya Kumar K Reviewed-by: Tim Deegan