On Wed, Nov 19, 2014 at 05:04:45PM +0100, Tomasz Nowicki wrote:
MMCFG ACPI table has no arch dependencies so it can be used across all architectures. Currently MMCONFIG related code resides in arch/x86 directories. This patch set is goint to isolate non-architecure specific code and make it accessible from drivers/pci/ directory.
Tomasz Nowicki (6): x86, acpi, pci: Reorder logic of pci_mmconfig_insert() function x86, acpi, pci: Move arch-agnostic MMCFG code out of arch/x86/ directory x86, acpi, pci: Move PCI config space accessors. x86, acpi, pci: mmconfig_{32,64}.c code refactoring - remove code duplication. x86, acpi, pci: mmconfig_64.c becomes default implementation for arch agnostic low-level direct PCI config space accessors via MMCONFIG. pci, acpi: Share ACPI PCI config space accessors.
Hi Tomasz,
I'm just checking to make sure we aren't deadlocked here, with me waiting for you and you waiting for me. I gave you some comments about abbreviations (MCFG/MMCFG/MMCONFIG/ECAM), weak functions, code placement (drivers/acpi vs. drivers/pci), and the mmio_config_*() naming, so I've been waiting to continue those discussions. But maybe you're waiting for me, too?
I think this sort of cleanup is a great idea and I hope we can make some progress on it. If it's easier to do it in small pieces, e.g., starting out by moving code and renaming things with no functional changes, that would be great with me.
Bjorn