From: "Jan Beulich" Subject: Re: [RFC PATCHv1] serial: Support OXPCIe952 aka Oxford Semiconductor Ltd Device c138 (1415:c138) Date: Tue, 04 Mar 2014 09:43:08 +0000 Message-ID: <5315AE3C0200007800120C45@nat28.tlf.novell.com> References: <1393898489-30012-1-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WKluT-00045W-RE for xen-devel@lists.xenproject.org; Tue, 04 Mar 2014 09:45:13 +0000 In-Reply-To: <1393898489-30012-1-git-send-email-konrad.wilk@oracle.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> On 04.03.14 at 03:01, Konrad Rzeszutek Wilk wrote: > @@ -325,11 +342,12 @@ static void __init ns16550_init_preirq(struct serial_port *port) > #ifdef CONFIG_X86 > enum fixed_addresses idx = FIX_COM_BEGIN + (uart - ns16550_com); > > - set_fixmap_nocache(idx, uart->io_base); > + set_fixmap_nocache(idx, uart->io_base + uart->offset); > uart->remapped_io_base = (void __iomem *)fix_to_virt(idx); > uart->remapped_io_base += uart->io_base & ~PAGE_MASK; Don't you need to add in uart->offset here too? > #else > - uart->remapped_io_base = (char *)ioremap(uart->io_base, uart->io_size); > + uart->remapped_io_base = (char *)ioremap(uart->io_base+ uart->offset, Missing space. > + uart->io_size); > #endif > } > Jan