From: Chen Baozi Subject: Re: Problems after enabling rcv/xmit interrupts of ns16550 on OMAP5 Date: Wed, 17 Jul 2013 16:02:37 +0800 Message-ID: References: <20130711105335.GA8938@cbz-workstation> <1373541663.5453.168.camel@hastur.hellion.org.uk> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Jul 12, 2013, at 3:41 PM, Chen Baozi wrote: > This means you have neither registered the irq nor enabled the interrupts. If I turned both of these two blocks into: > > if ( uart->dt_irq.irq > ) > { > ... > } > > There is the same phenomenon that I described in previous email. And If I comment either of these two blocks in my patch, my implementation works. > > Any ideas? Hi Ian, I inserted some codes in ns16550_setup_postirq to see what would cause the stuck. It seems that it will stuck while restoring CPSR or "cpsie i". But I'm not sure that these two cases are the only factors that will lead the phenomenons. Cheers, Baozi