summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-05-07 01:37:48 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-05-12 03:15:39 +0200
commit7fa7cbc0b9fcc34bd0d4710664dcdadc723854c6 (patch)
tree2bbeb31ab76d224ce0228c1ec480a332d9b0aaf0 /target/linux/realtek
parentda2f5e8776da6ca7ca5ae9646243dc0f04ce24b9 (diff)
downloadopenwrt-7fa7cbc0b9fcc34bd0d4710664dcdadc723854c6.tar.gz
openwrt-7fa7cbc0b9fcc34bd0d4710664dcdadc723854c6.tar.bz2
openwrt-7fa7cbc0b9fcc34bd0d4710664dcdadc723854c6.zip
realtek: 5.15: fix compilation warning with PHY_INTERFACE_MODE_HSGMII
PHY_INTERFACE_MODE_HSGMII was not handled in phylink_get_linkmodes and phylink_parse_mode. Fix compilation warning by adding it in the enum: drivers/net/phy/phylink.c: In function 'phylink_get_linkmodes': drivers/net/phy/phylink.c:360:9: error: enumeration value 'PHY_INTERFACE_MODE_HSGMII' 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/realtek')
-rw-r--r--target/linux/realtek/patches-5.15/704-include-linux-add-phy-hsgmii-mode.patch21
1 files changed, 20 insertions, 1 deletions
diff --git a/target/linux/realtek/patches-5.15/704-include-linux-add-phy-hsgmii-mode.patch b/target/linux/realtek/patches-5.15/704-include-linux-add-phy-hsgmii-mode.patch
index 8109abd264..1dd328b34e 100644
--- a/target/linux/realtek/patches-5.15/704-include-linux-add-phy-hsgmii-mode.patch
+++ b/target/linux/realtek/patches-5.15/704-include-linux-add-phy-hsgmii-mode.patch
@@ -9,9 +9,28 @@ protocol.
Submitted-by: Birger Koblitz <git@birger-koblitz.de>
---
+ drivers/net/phy/phylink.c | 2 ++
include/linux/phy.h | 3 +++
- 1 file changed, 3 insertions(+)
+ 2 file changed, 5 insertions(+)
+--- a/drivers/net/phy/phylink.c
++++ b/drivers/net/phy/phylink.c
+@@ -403,6 +403,7 @@ void phylink_get_linkmodes(unsigned long
+
+ case PHY_INTERFACE_MODE_XGMII:
+ case PHY_INTERFACE_MODE_RXAUI:
++ case PHY_INTERFACE_MODE_HSGMII:
+ case PHY_INTERFACE_MODE_XAUI:
+ case PHY_INTERFACE_MODE_10GBASER:
+ case PHY_INTERFACE_MODE_10GKR:
+@@ -657,6 +658,7 @@ static int phylink_parse_mode(struct phy
+ fallthrough;
+ case PHY_INTERFACE_MODE_USXGMII:
+ case PHY_INTERFACE_MODE_10GKR:
++ case PHY_INTERFACE_MODE_HSGMII:
+ case PHY_INTERFACE_MODE_10GBASER:
+ phylink_set(pl->supported, 10baseT_Half);
+ phylink_set(pl->supported, 10baseT_Full);
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -138,6 +138,7 @@ typedef enum {