From: Ian Campbell Subject: Re: [PATCH v8 4/6] xen/arm: Add the new OMAP UART driver. Date: Thu, 22 Aug 2013 11:20:23 +0100 Message-ID: <1377166823.31937.105.camel@hastur.hellion.org.uk> References: <1376392466-26685-1-git-send-email-baozich@gmail.com> <1376392466-26685-5-git-send-email-baozich@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1376392466-26685-5-git-send-email-baozich@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: Chen Baozi Cc: Julien Grall , Xen Developer List List-Id: xen-devel@lists.xenproject.org On Tue, 2013-08-13 at 19:14 +0800, Chen Baozi wrote: > TI OMAP UART introduces some features such as register access modes, which > makes its configuration and interrupt handling differs from 8250 compatible > UART. Thus, we seperate this driver from ns16550's implementation. > > Signed-off-by: Chen Baozi Acked-by: Ian Campbell > @@ -11,6 +11,7 @@ CFLAGS += -marm > > HAS_PL011 := y > HAS_EXYNOS4210 := y > +HAS_OMAP := y All three of these would be better with a _UART suffix IMHO, the HAS_OMAP makes it particularly obvious... Would you mind making this change (in a follow up patch)? [...] > +static int __init omap_uart_irq(struct serial_port *port) > +{ > + struct omap_uart *uart = port->uart; > + > + return ((uart->irq.irq > 0) ? uart->irq.irq : -1); > +} > +[..] > +static struct uart_driver __read_mostly omap_uart_driver = { [...] > + .irq = omap_uart_irq, > + .dt_irq_get = omap_uart_dt_irq, [...] This is really a question for Julien: Does a driver which is DT only need to provide the irq hook or is dt_irq sufficient? Ian.