From: Ian Campbell Subject: Re: [PATCH v5 3/5] xen/arm: Add the new OMAP UART driver. Date: Thu, 8 Aug 2013 13:03:45 +0100 Message-ID: <1375963425.970.90.camel@kazak.uk.xensource.com> References: <1375959145-13709-1-git-send-email-baozich@gmail.com> <1375959145-13709-4-git-send-email-baozich@gmail.com> <1375962086.970.84.camel@kazak.uk.xensource.com> Mime-Version: 1.0 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: Chen Baozi Cc: Julien Grall , Xen Developer List List-Id: xen-devel@lists.xenproject.org On Thu, 2013-08-08 at 19:58 +0800, Chen Baozi wrote: > On Aug 8, 2013, at 7:41 PM, Ian Campbell wrote: > > > On Thu, 2013-08-08 at 18:52 +0800, Chen Baozi wrote: > > > >> +#define omap_read(uart, off) ioreadl((uart)->regs + (off< >> +#define omap_write(uart, off, val) iowritel((uart)->regs + (off< > > > Other than my comment made on #2 about either using DT or hardcoing > > REG_SHIFT in this driver I think this patch is good. > >> diff --git a/xen/include/xen/8250-uart.h b/xen/include/xen/8250-uart.h > >> index 33daa6d..7498e71 100644 > >> --- a/xen/include/xen/8250-uart.h > >> +++ b/xen/include/xen/8250-uart.h > > > > To what extent are these changes specific to the TI part? > > > > I guess at least OMAP_* could be in its own header or in the .c file I > > guess? Not sure what others think about that? > > Hmmm, in Linux, they are in one header (see comments below). OK, then I guess that's fine by me. Ian.