aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-05-08 20:55:19 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-05-12 03:15:41 +0200
commite28196c4aac733ed23a8fcabe22c1e4dbfac3b5f (patch)
tree22e23dceac247bfe86e7dc3dba8a6174cc3c3bc1 /target/linux
parentade9eba1496bb01acc03731c4ccb5369802b73ac (diff)
downloadupstream-e28196c4aac733ed23a8fcabe22c1e4dbfac3b5f.tar.gz
upstream-e28196c4aac733ed23a8fcabe22c1e4dbfac3b5f.tar.bz2
upstream-e28196c4aac733ed23a8fcabe22c1e4dbfac3b5f.zip
layerscape: 5.15: fix compilation warning for PHY_INTERFACE_MODE_2500SGMII
Fix compilation warning for PHY_INTERFACE_MODE_2500SGMII patch. Fix compilation warning: drivers/net/phy/phylink.c: In function 'phylink_get_linkmodes': drivers/net/phy/phylink.c:360:9: error: enumeration value 'PHY_INTERFACE_MODE_2500SGMII' not handled in switch [-Werror=switch] 360 | switch (interface) { | ^~~~~~ cc1: all warnings being treated as errors Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/layerscape/patches-5.15/702-phy-Add-2.5G-SGMII-interface-mode.patch21
1 files changed, 21 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 35c11d3ef8..4a78bfe955 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,27 @@ Signed-off-by: Bhaskar Upadhaya <Bhaskar.Upadhaya@nxp.com>
include/linux/phy.h | 3 +++
1 file changed, 3 insertions(+)
+--- a/drivers/net/phy/phylink.c
++++ b/drivers/net/phy/phylink.c
+@@ -393,6 +393,7 @@ void phylink_get_linkmodes(unsigned long
+ caps |= MAC_1000FD;
+ break;
+
++ case PHY_INTERFACE_MODE_2500SGMII:
+ case PHY_INTERFACE_MODE_2500BASEX:
+ caps |= MAC_2500FD;
+ break;
+@@ -646,6 +647,10 @@ static int phylink_parse_mode(struct phy
+ phylink_set(pl->supported, 2500baseX_Full);
+ break;
+
++ case PHY_INTERFACE_MODE_2500SGMII:
++ phylink_set(pl->supported, 2500baseT_Full);
++ break;
++
+ case PHY_INTERFACE_MODE_5GBASER:
+ phylink_set(pl->supported, 5000baseT_Full);
+ break;
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -152,6 +152,7 @@ typedef enum {