From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chen Baozi Subject: Re: [PATCH v8 4/6] xen/arm: Add the new OMAP UART driver. Date: Fri, 23 Aug 2013 08:05:18 +0800 Message-ID: References: <1376392466-26685-1-git-send-email-baozich@gmail.com> <1376392466-26685-5-git-send-email-baozich@gmail.com> <1377166823.31937.105.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: <1377166823.31937.105.camel@hastur.hellion.org.uk> 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: Julien Grall , Xen Developer List List-Id: xen-devel@lists.xenproject.org On Aug 22, 2013, at 6:20 PM, Ian Campbell wrote: > 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)? No problems, :) Thanks, Baozi > > [...] >> +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. > >