[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [RFC PATCHv1] serial: Support OXPCIe952 aka Oxford Semiconductor Ltd Device c138 (1415:c138)



On Mar 4, 2014 4:43 AM, Jan Beulich <JBeulich@xxxxxxxx> wrote:
>
> >>> On 04.03.14 at 03:01, Konrad Rzeszutek Wilk <konrad@xxxxxxxxxx> 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?

The virtual address at that point already covers then BAR + offset.
>
> >Â #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.

Fixed.
>
> > +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ uart->io_size); 
> >Â #endif 
> >ÂÂÂÂÂ } 
>
>

> Jan 
>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.