qualcommax: ipq807x: add WLAN device path migration
authorRobert Marko <robimarko@gmail.com>
Sat, 9 Mar 2024 10:22:05 +0000 (11:22 +0100)
committerRobert Marko <robimarko@gmail.com>
Fri, 22 Mar 2024 20:19:21 +0000 (21:19 +0100)
commit4989556a53e788ea81aa2623446b16e0f44f60e3
treeb740c97e590ea199ce951489062f4133e1e14021
parentd9a2886263570fa8be070fca6e592ebae4adeefd
qualcommax: ipq807x: add WLAN device path migration

Kernel 6.6 has changed the path of WLAN devices as the soc node was updated
to include an adress as well because according to spec it needed one:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/arm64/boot/dts/qcom/ipq8074.dtsi?h=v6.6.21&id=da6aa1111a17db11367817ddc10c5a6c188cdc44

So, this will break existing configuration as device path was changed for
example:
"platform/soc/c000000.wifi" to "platform/soc@0/c000000.wifi"
"platform/soc/c000000.wifi+1" to "platform/soc@0/c000000.wifi+1"

PCIe attached devices also have their path changed, so lets add a script
that will migrate the paths based on the detected running kernel version
so returning to kernel 6.1 will work as well.

Co-developed-by: Sean Khan <datapronix@protonmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/qualcommax/ipq807x/base-files/etc/hotplug.d/ieee80211/05-wifi-migrate [new file with mode: 0644]