Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -Naru build_ax23-v1-ap-a/target/linux/generic/hack-6.1/940-net-dsa-mt7530-use-switch-MDIO-bus-for-PHY-muxing.patch build_ax23-v1-ap-b/target/linux/generic/hack-6.1/940-net-dsa-mt7530-use-switch-MDIO-bus-for-PHY-muxing.patch
- --- build_ax23-v1-ap-a/target/linux/generic/hack-6.1/940-net-dsa-mt7530-use-switch-MDIO-bus-for-PHY-muxing.patch 1970-01-01 03:00:00.000000000 +0300
- +++ build_ax23-v1-ap-b/target/linux/generic/hack-6.1/940-net-dsa-mt7530-use-switch-MDIO-bus-for-PHY-muxing.patch 2024-04-30 08:01:42.514810164 +0300
- @@ -0,0 +1,29 @@
- +From 5f94d7358cceda721983b29245010a9d4ab0c808 Mon Sep 17 00:00:00 2001
- +From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= <arinc.unal@arinc9.com>
- +Date: Sun, 28 Apr 2024 13:38:46 +0300
- +Subject: [PATCH] net: dsa: mt7530: use switch MDIO bus for PHY muxing
- +MIME-Version: 1.0
- +Content-Type: text/plain; charset=UTF-8
- +Content-Transfer-Encoding: 8bit
- +
- +Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
- +---
- + drivers/net/dsa/mt7530.c | 2 +-
- + 1 file changed, 1 insertion(+), 1 deletion(-)
- +
- +diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c
- +index 7dc2f0ac8962..fa7a1ab292d2 100644
- +--- a/drivers/net/dsa/mt7530.c
- ++++ b/drivers/net/dsa/mt7530.c
- +@@ -2585,7 +2585,7 @@ mt7530_setup(struct dsa_switch *ds)
- + if (!phy_node)
- + continue;
- +
- +- if (phy_node->parent == priv->dev->of_node->parent) {
- ++ if (phy_node->parent->parent == priv->dev->of_node) {
- + ret = of_get_phy_mode(mac_np, &interface);
- + if (ret && ret != -ENODEV) {
- + of_node_put(mac_np);
- +--
- +2.40.1
- +
- diff -Naru build_ax23-v1-ap-a/target/linux/ramips/dts/mt7621_mercusys_mr70x-v1.dts build_ax23-v1-ap-b/target/linux/ramips/dts/mt7621_mercusys_mr70x-v1.dts
- --- build_ax23-v1-ap-a/target/linux/ramips/dts/mt7621_mercusys_mr70x-v1.dts 2024-02-24 01:30:57.232929535 +0300
- +++ build_ax23-v1-ap-b/target/linux/ramips/dts/mt7621_mercusys_mr70x-v1.dts 2024-04-30 08:08:54.398642666 +0300
- @@ -145,27 +145,48 @@
- nvmem-cell-names = "mac-address";
- };
- -&mdio {
- - ethphy0: ethernet-phy@0 {
- - reg = <0>;
- - };
- -};
- -
- &switch0 {
- + mdio {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + ethphy0: ethernet-phy@0 {
- + reg = <0>;
- + };
- +
- + ethphy1: ethernet-phy@1 {
- + reg = <1>;
- + interrupts = <1>;
- + };
- +
- + ethphy2: ethernet-phy@2 {
- + reg = <2>;
- + interrupts = <2>;
- + };
- +
- + ethphy3: ethernet-phy@3 {
- + reg = <3>;
- + interrupts = <3>;
- + };
- + };
- +
- ports {
- port@1 {
- status = "okay";
- label = "lan1";
- + phy-handle = <ðphy1>;
- };
- port@2 {
- status = "okay";
- label = "lan2";
- + phy-handle = <ðphy2>;
- };
- port@3 {
- status = "okay";
- label = "lan3";
- + phy-handle = <ðphy3>;
- };
- };
- };
- diff -Naru build_ax23-v1-ap-a/target/linux/ramips/dts/mt7621_tplink_eap235-wall-v1.dts build_ax23-v1-ap-b/target/linux/ramips/dts/mt7621_tplink_eap235-wall-v1.dts
- --- build_ax23-v1-ap-a/target/linux/ramips/dts/mt7621_tplink_eap235-wall-v1.dts 2024-02-24 01:30:57.240929468 +0300
- +++ build_ax23-v1-ap-b/target/linux/ramips/dts/mt7621_tplink_eap235-wall-v1.dts 2024-04-30 08:13:31.371035141 +0300
- @@ -189,27 +189,48 @@
- nvmem-cell-names = "mac-address";
- };
- -&mdio {
- - ethphy0: ethernet-phy@0 {
- - reg = <0>;
- - };
- -};
- -
- &switch0 {
- + mdio {
- + #address-cells = <1>;
- + #size-cells = <0>;
- +
- + ethphy0: ethernet-phy@0 {
- + reg = <0>;
- + };
- +
- + ethphy1: ethernet-phy@1 {
- + reg = <1>;
- + interrupts = <1>;
- + };
- +
- + ethphy2: ethernet-phy@2 {
- + reg = <2>;
- + interrupts = <2>;
- + };
- +
- + ethphy3: ethernet-phy@3 {
- + reg = <3>;
- + interrupts = <3>;
- + };
- + };
- +
- ports {
- port@1 {
- status = "okay";
- label = "lan3";
- + phy-handle = <ðphy1>;
- };
- port@2 {
- status = "okay";
- label = "lan2";
- + phy-handle = <ðphy2>;
- };
- port@3 {
- status = "okay";
- label = "lan1";
- + phy-handle = <ðphy3>;
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement