]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/fsl-pci: get PCI init out of board files
authorScott Wood <scottwood@freescale.com>
Wed, 11 Jul 2012 00:26:47 +0000 (19:26 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Wed, 11 Jul 2012 12:49:33 +0000 (07:49 -0500)
commit9fa958a864e1507475a40aa3389bb45b71e3af2e
treec5b4abe15012b02154183fb4bc03ff54b693f00f
parentf471f7684f20631d9b897f0de3bbf61099a2b675
powerpc/fsl-pci: get PCI init out of board files

As an alternative incremental starting point to Jia Hongtao's patchset,
get the FSL PCI init out of the board files, but do not yet convert to a
platform driver.

Rather than having each board supply a magic register offset for
determining the "primary" bus, we look for which PCI host bridge
contains an ISA node within its subtree.  If there is no ISA node,
normally that would mean there is no primary bus, but until certain
bugs are fixed we arbitrarily designate a primary in this case.

Conversion to a platform driver and related improvements can happen
after this, as the ordering issues are sorted out.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/fsl_pci.c
arch/powerpc/sysdev/fsl_pci.h