[openwrt/openwrt] ramips: correct the PCIe port number for some mt7621 devices
LEDE Commits
lede-commits at lists.infradead.org
Sat Feb 25 11:23:01 PST 2023
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/688697889c9ceb9d2d8d413d1abcc5fa7edb402b
commit 688697889c9ceb9d2d8d413d1abcc5fa7edb402b
Author: Felix Baumann <felix.bau at gmx.de>
AuthorDate: Mon Feb 20 03:40:20 2023 +0100
ramips: correct the PCIe port number for some mt7621 devices
MT7621 uses a new PCIe driver in the 5.15+ kernel. Allocating wrong PCIe
port will cause the PCIe NIC to not work properly. This commit fixes
the wrong port numbers on Netgear R6220, WAC104 and WNDR3700 v5.
According to bootlog, MT7612E (5GHz) is connected to pcie0, and
MT7603E (2GHz) is connected to pcie2:
[2.758986] mt7621-pci 1e140000.pcie: pcie1 no card, disable it (RST & CLK)
[2.772862] mt7621-pci 1e140000.pcie: PCIE0 enabled
[2.782579] mt7621-pci 1e140000.pcie: PCIE2 enabled
...
[3.009151] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[3.125715] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
Tested-by: Maximilian Baumgartner <aufhaxer at googlemail.com>
Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
[felix.bau at gmx.de: adjust commit message for Netgear devices]
Signed-off-by: Felix Baumann <felix.bau at gmx.de>
---
target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi | 2 +-
target/linux/ramips/dts/mt7621_netgear_wac104.dts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi b/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi
index 0ae6ab46f7..691aba1063 100644
--- a/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi
+++ b/target/linux/ramips/dts/mt7621_netgear_sercomm_ayx.dtsi
@@ -96,7 +96,7 @@
};
};
-&pcie1 {
+&pcie2 {
wifi at 0,0 {
compatible = "mediatek,mt76";
reg = <0x0 0 0 0 0>;
diff --git a/target/linux/ramips/dts/mt7621_netgear_wac104.dts b/target/linux/ramips/dts/mt7621_netgear_wac104.dts
index 3b5d6ae2d9..97aa4a90d1 100644
--- a/target/linux/ramips/dts/mt7621_netgear_wac104.dts
+++ b/target/linux/ramips/dts/mt7621_netgear_wac104.dts
@@ -122,7 +122,7 @@
};
};
-&pcie1 {
+&pcie2 {
wifi at 0,0 {
compatible = "mediatek,mt76";
reg = <0x0 0 0 0 0>;
More information about the lede-commits
mailing list