summaryrefslogtreecommitdiffstats
path: root/target/linux/layerscape
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2024-01-26 15:49:12 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2024-01-26 15:49:12 +0100
commit1a392e7f2462f38255bc959821eba035b566e168 (patch)
treeb2de0728aa4fae2ccb8d0425825c8a02152e7d4f /target/linux/layerscape
parent652d72260d816fe493e9453c472ce5c0c85240f3 (diff)
downloadopenwrt-1a392e7f2462f38255bc959821eba035b566e168.tar.gz
openwrt-1a392e7f2462f38255bc959821eba035b566e168.tar.bz2
openwrt-1a392e7f2462f38255bc959821eba035b566e168.zip
layerscape: 5.15: refresh 2.5G-SGMII patch due to recent PHY backport
Refresh 2.5G-SGMII patch due to recent PHY backport that cause compilation warning for case not handled in phy_interface_num_ports. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/layerscape')
-rw-r--r--target/linux/layerscape/patches-5.15/702-phy-Add-2.5G-SGMII-interface-mode.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/layerscape/patches-5.15/702-phy-Add-2.5G-SGMII-interface-mode.patch b/target/linux/layerscape/patches-5.15/702-phy-Add-2.5G-SGMII-interface-mode.patch
index daf6cf3ce7..f1ce7cc0ad 100644
--- a/target/linux/layerscape/patches-5.15/702-phy-Add-2.5G-SGMII-interface-mode.patch
+++ b/target/linux/layerscape/patches-5.15/702-phy-Add-2.5G-SGMII-interface-mode.patch
@@ -11,6 +11,16 @@ Signed-off-by: Bhaskar Upadhaya <Bhaskar.Upadhaya@nxp.com>
include/linux/phy.h | 3 +++
1 file changed, 3 insertions(+)
+--- a/drivers/net/phy/phy-core.c
++++ b/drivers/net/phy/phy-core.c
+@@ -136,6 +136,7 @@ int phy_interface_num_ports(phy_interfac
+ case PHY_INTERFACE_MODE_RXAUI:
+ case PHY_INTERFACE_MODE_XAUI:
+ case PHY_INTERFACE_MODE_1000BASEKX:
++ case PHY_INTERFACE_MODE_2500SGMII:
+ return 1;
+ case PHY_INTERFACE_MODE_QSGMII:
+ case PHY_INTERFACE_MODE_QUSGMII:
--- a/drivers/net/phy/phylink.c
+++ b/drivers/net/phy/phylink.c
@@ -400,6 +400,7 @@ void phylink_get_linkmodes(unsigned long