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
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
patches-4.14
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
config-4.19 lantiq: make patches apply 2019-07-04 08:29:13 +02:00
Makefile
modules.mk