openwrt/target/linux/lantiq
Mathias Kresin 961b8efb5b lantiq: 4.19: load PCIe driver after PCI driver
In case a PCI device is physical present, the Lantiq PCI driver need to
be loaded prior to the Lantiq PCIe driver. Otherwise none of them will
work because updating the BAR 0 of a device attached to the PCIe Bus
will fail.

Till kernel commit 9667bb039bf6 ("MIPS: lantiq: remove unnecessary
of_platform_default_populate call"), the Lantiq PCI driver was probed
early in the boot process via plat_of_setup().

Since the mentioned commit, both drivers are probed via
of_platform_default_populate_init() and they are probed according to
their order in the devicetree source file.

If the Lantiq PCI driver is enabled in the devicetree, defer the probing
og the Lantiq PCIe driver till the Lantiq PCI driver is probed. Use the
presence of a PCU bus as indicater for a loaded Lantiq PCI driver.

This way we don't need to shuffle the PCI/PCIe nodes in the devicetree
source file, as they are already (correctly) ordered based on the unit
address.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2019-07-04 08:29:13 +02:00
..
ase lantiq: copy target to kernel 4.19 2019-07-04 08:29:13 +02:00
base-files fritz-tools: add support for IPQ40xx platform 2019-03-13 16:25:34 +01:00
falcon lantiq: copy target to kernel 4.19 2019-07-04 08:29:13 +02:00
files lantiq: copy target to kernel 4.19 2019-07-04 08:29:13 +02:00
image lantiq: add support for AVM FRITZ!Box 7362 SL 2019-03-10 16:49:31 +01:00
patches-4.14 kernel: bump 4.14 to 4.14.122 2019-06-03 12:40:53 +02:00
patches-4.19 lantiq: 4.19: load PCIe driver after PCI driver 2019-07-04 08:29:13 +02:00
xrx200 lantiq: make patches apply 2019-07-04 08:29:13 +02:00
xway lantiq: copy target to kernel 4.19 2019-07-04 08:29:13 +02:00
xway_legacy lantiq: copy target to kernel 4.19 2019-07-04 08:29:13 +02:00
config-4.14 lantiq: Refresh kernel 4.14 configuration 2019-03-10 19:05:49 +01:00
config-4.19 lantiq: make patches apply 2019-07-04 08:29:13 +02:00
Makefile lantiq: switch to kernel 4.14 2018-05-17 07:40:19 +02:00
modules.mk fix i2c-lantiq module 2012-12-16 10:03:18 +00:00