openwrtv4/target/linux/mvebu/base-files
Hauke Mehrtens 0bd5aa89fc mvebu: Migrate uci config to new PCIe path
The name of the PCIe controller node in device tree changed between
kernel 4.9 and kernel 4.14. Migrate the configuration when an update
from kernel 4.9 to 4.14 or back is done to the new name to make
the existing wifi configuration compatible with the new names.

This replaces the "pcie-controller" part with "pcie" on all nodes if the
file exists in sys fs.

This is not done in the uci-defualts, because they are getting executed
to late in the boot process. The kernel module gets loaded before the
uci-defaults scripts are executed. When the mwlwifi driver gets loaded
it will trigger an event via hotplug to detect new devices and as the
paths are not in the uci configuration they will be added again.
When the migration is done before the script will detect that they are
already there.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-02-13 22:30:59 +01:00
..
etc mvebu: Migrate uci config to new PCIe path 2018-02-13 22:30:59 +01:00
lib mvebu: Fix ClearFog sysupgrade board definitions 2017-10-15 00:24:22 +02:00
sbin mvebu: deal with the new path in the fan control script for Linux 4.0+ 2015-03-31 19:12:27 +00:00