[openwrt/openwrt] ramips: fix PCIe port number for ZBT WE3526
LEDE Commits
lede-commits at lists.infradead.org
Sun Jul 28 16:23:32 PDT 2024
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/ddb322a7c824ddaf4feb4a1736e889d6fe057e9e
commit ddb322a7c824ddaf4feb4a1736e889d6fe057e9e
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Thu Jul 25 08:40:00 2024 +0800
ramips: fix PCIe port number for ZBT WE3526
From the kernel log, we are using PCIe port 1 and 2.
dmesg:
```
[ 0.963526] mt7621-pci 1e140000.pcie: pcie0 no card, disable it (RST & CLK)
[ 0.970432] mt7621-pci 1e140000.pcie: PCIE1 enabled
[ 0.975312] mt7621-pci 1e140000.pcie: PCIE2 enabled
[ 1.071442] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[ 1.130382] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
```
Fixes: https://github.com/openwrt/openwrt/issues/16000
Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
Link: https://github.com/openwrt/openwrt/pull/16009
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/ramips/dts/mt7621_zbtlink_zbt-we3526.dts | 4 ++--
.../ramips/mt7621/base-files/etc/hotplug.d/ieee80211/05-wifi-migrate | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/target/linux/ramips/dts/mt7621_zbtlink_zbt-we3526.dts b/target/linux/ramips/dts/mt7621_zbtlink_zbt-we3526.dts
index 31a4e4482a..ce8906efc2 100644
--- a/target/linux/ramips/dts/mt7621_zbtlink_zbt-we3526.dts
+++ b/target/linux/ramips/dts/mt7621_zbtlink_zbt-we3526.dts
@@ -96,7 +96,7 @@
status = "okay";
};
-&pcie0 {
+&pcie1 {
wifi at 0,0 {
compatible = "pci14c3,7662";
reg = <0x0000 0 0 0 0>;
@@ -110,7 +110,7 @@
};
};
-&pcie1 {
+&pcie2 {
wifi at 0,0 {
compatible = "pci14c3,7603";
reg = <0x0000 0 0 0 0>;
diff --git a/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/05-wifi-migrate b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/05-wifi-migrate
index 6504dc81a5..0e7ff41453 100644
--- a/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/05-wifi-migrate
+++ b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/05-wifi-migrate
@@ -63,7 +63,8 @@ netgear,wac104|\
netgear,wndr3700-v5)
migrate_radio '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0' '1e140000.pcie/pci0000:00/0000:00:02.0/0000:02:00.0'
;;
-zbtlink,zbt-we1326)
+zbtlink,zbt-we1326|\
+zbtlink,zbt-we3526)
migrate_radio '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0' '1e140000.pcie/pci0000:00/0000:00:02.0/0000:02:00.0'
migrate_radio '1e140000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0' '1e140000.pcie/pci0000:00/0000:00:01.0/0000:01:00.0'
;;
More information about the lede-commits
mailing list