From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Tue, 29 Sep 2015 09:42:48 +0200 Subject: [RFC PATCH] PCI/pci-host-generic: Add support for Cavium Thunder fixed BARs. In-Reply-To: <1443488184-12633-1-git-send-email-ddaney.cavm@gmail.com> References: <1443488184-12633-1-git-send-email-ddaney.cavm@gmail.com> Message-ID: <1981236.3bSkWiA8PH@wuerfel> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Monday 28 September 2015 17:56:24 David Daney wrote: > From: David Daney > > Early versions of the Cavium Thunder CN88XX processor are missing > Enhanced Allocation (EA) capabilities for the fixed BAR addresses used > by the on-SoC hardware blocks. > > Add config access functions that synthesize the missing EA > capabilities for versions that are missing that information. Since > this is a little hacky, gate the inclusion of the code with a new > Kconfig variable. > > Signed-off-by: David Daney > --- > > As suggested by Bjorn Helgaas... It is RFC at this point, but this is > working well for me. I don't have an opinion on the way you implement the config space accessors, but it seems that the overall amount of code is comparable to the normal pci-host-generic driver without this, and it is not really generic at all. I think because of this, it makes more sense to have a separate top-level driver for this and not reuse the pci-host-generic implementation here. Arnd