openwrt/target/linux
Martin Kennedy 0d4a0250df mpc85xx: Drop pci aliases to avoid domain changes
As of upstream Linux commit 0fe1e96fef0a ("powerpc/pci: Prefer PCI
domain assignment via DT 'linux,pci-domain' and alias"), the PCIe
domain address is no longer numbered by the lowest 16 bits of the PCI
register address after a fallthrough. Instead of the fallthrough, the
enumeration process accepts the alias ID (as determined by
`of_alias_scan()`). This causes e.g.:

9000:00:00.0 PCI bridge: Freescale Semiconductor Inc P1020E (rev 11)
9000:01:00.0 Network controller: Qualcomm Atheros AR958x 802.11abgn ...

to become

0000:00:00.0 PCI bridge: Freescale Semiconductor Inc P1020E (rev 11)
0000:01:00.0 Network controller: Qualcomm Atheros AR958x 802.11abgn ...

... which then causes the sysfs path of the netdev to change,
invalidating the `wifi_device.path`s enumerated in
`/etc/config/wireless`.

One other solution might be to migrate the uci configuration, as was
done for mvebu in commit 0bd5aa89fc ("mvebu: Migrate uci config to
new PCIe path"). However, there are concerns that the sysfs path will
change once again once some upstream patches[^2][^3] are merged and
backported (and `CONFIG_PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT` is enabled).

Instead, remove the aliases and allow the fallthrough to continue for
now. We will provide a migration in a later release.

This was first reported as a Github issue[^1].

[^1]: https://github.com/openwrt/openwrt/issues/10530
[^2]: https://lore.kernel.org/linuxppc-dev/20220706104308.5390-1-pali@kernel.org/t/#u
[^3]: https://lore.kernel.org/linuxppc-dev/20220706101043.4867-1-pali@kernel.org/

Fixes: #10530
Tested-by: Martin Kennedy <hurricos@gmail.com>
[Tested on the Aerohive HiveAP 330 and Extreme Networks WS-AP3825i]
Signed-off-by: Martin Kennedy <hurricos@gmail.com>
(cherry picked from commit 7f4b4c29f3)
Signed-off-by: Fabian Bläse <fabian@blaese.de>
2023-02-08 09:40:05 +01:00
..
apm821xx kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
arc770 arc770: set device vendor and model variables 2021-05-26 23:36:40 +02:00
archs38 kernel: Add missing kernel config options 2021-09-13 18:49:15 +02:00
armvirt kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
at91 treewide: make AddDepends/usb-serial selective 2021-06-08 22:50:32 +02:00
ath25 kernel: bump 5.4 to 5.4.211 2022-09-04 15:32:22 +02:00
ath79 kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
bcm27xx kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
bcm47xx bcm47xx: make WGT634U NVRAM patch apply again 2021-03-17 23:38:46 +01:00
bcm53xx kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
bcm63xx kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
bcm4908 kernel: backport b53/bcm_sf2 changes from v5.8 2022-12-07 10:30:14 +01:00
gemini kernel: bump 5.4 to 5.4.150 2021-10-02 16:05:34 +02:00
generic kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
imx6 kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
ipq40xx kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
ipq806x kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
kirkwood kirkwood: increase kernel partition of Linksyses 2021-09-13 15:24:35 +02:00
lantiq kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
layerscape kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
malta target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
mediatek kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
mpc85xx mpc85xx: Drop pci aliases to avoid domain changes 2023-02-08 09:40:05 +01:00
mvebu kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
mxs target: use SPDX license identifiers on scripts 2021-02-10 15:47:23 +01:00
octeon kernel: bump 5.4 to 5.4.211 2022-09-04 15:32:22 +02:00
octeontx kernel: bump 5.4 to 5.4.211 2022-09-04 15:32:22 +02:00
omap kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
oxnas kernel: bump 5.4 to 5.4.224 2022-11-13 01:06:12 +01:00
pistachio kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
ramips kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
realtek realtek: update rtl83xx switch driver to the updated DSA API 2023-01-02 17:43:31 +01:00
rockchip kernel: bump 5.4 to 5.4.230 2023-01-28 19:26:47 +01:00
sunxi sunxi: add support for Banana Pi M2 Berry 2022-08-28 08:12:39 +02:00
tegra kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
uml target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
x86 kernel: Remove kmod-crypto-lib-blake2s 2022-07-04 01:35:37 +02:00
zynq kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00