[cns3xxx]: move PCIe init to subsys init call
authorImre Kaloz <kaloz@openwrt.org>
Wed, 31 Oct 2012 20:16:53 +0000 (20:16 +0000)
committerImre Kaloz <kaloz@openwrt.org>
Wed, 31 Oct 2012 20:16:53 +0000 (20:16 +0000)
commitd1796fe9bc1e73c2737c63c8f7c78e60d59d76be
treeeec38da24220cf7a13ff0eb44fb0c76d3bd57629
parenta8740d7d0d00a1da7db6ccf7f7e39125f9b1b6fe
[cns3xxx]: move PCIe init to subsys init call

ARM Linux PCI/PCIe hardware intialization needs to occur before device_init
as it does not support hotplug.  I have modeled the cns3xxx PCIe init after
other ARM platforms.  Registering it early resolves resource issues occuring
during bus enumeration that occur when a device driver is linked static in
the kernel.

Instead of passing in a bitmask to enable the 2 available ports, link detect
is used to enable ports that have a valid link.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
SVN-Revision: 34044
target/linux/cns3xxx/patches-3.3/480-cns3xxx_pcie_early_init.patch [new file with mode: 0644]