[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2664356.LLPHGvlG5M@wuerfel>
Date: Tue, 11 Mar 2014 11:43:39 +0100
From: Arnd Bergmann <arnd@...db.de>
To: linux-arm-kernel@...ts.infradead.org
Cc: Liviu Dudau <Liviu.Dudau@....com>, Liviu Dudau <liviu@...au.co.uk>,
linaro-kernel <linaro-kernel@...ts.linaro.org>,
Catalin Marinas <Catalin.Marinas@....com>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
linux-pci <linux-pci@...r.kernel.org>,
Will Deacon <Will.Deacon@....com>,
LKML <linux-kernel@...r.kernel.org>,
Tanmay Inamdar <tinamdar@....com>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Bjorn Helgaas <bhelgaas@...gle.com>
Subject: Re: [PATCH v6 6/6] pci: Add support for creating a generic host_bridge from device tree
On Tuesday 11 March 2014 09:46:41 Liviu Dudau wrote:
> On Tue, Mar 11, 2014 at 06:50:24AM +0000, Arnd Bergmann wrote:
> > On Monday 10 March 2014 21:56:00 Liviu Dudau wrote:
> > >
> > > PCI_IOBASE is always defined. See the discussion with Russell on this subject.
> > >
> > > include/asm-generic/io.h has at line 118:
> > >
> > > #ifndef PCI_IOBASE
> > > #define PCI_IOBASE ((void __iomem *) 0)
> > > #endif
> >
> > That is only defined for those that use asm-generic/pci.h, which most architectures
> > don't.
>
> I think it is defined for anyone that #includes <asm-generic/io.h>. There is no other
> #ifdef around that.
>
My mistake, I meant to write asm-generic/io.h.
On a related note, I would actually prefer to get rid of this PCI_IOBASE
default and move it into the architectures that really want it like this.
The default when PCI_IOBASE is not set IMHO should be to also not provide
inb/outb and ioport_map() helpers, but we need a little more infrastructure
to actually make the kernel build in all valid configuration when we remove them.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists