summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Stockhausen2025-08-30 16:29:29 +0000
committerHauke Mehrtens2025-09-05 11:35:39 +0000
commitf151951a0feb1d4722ea7d24ca4237f6a242a9f2 (patch)
tree29f8ef5cc298e7631a4b856353a20099f372bd30
parent3d7b0bc5c18fb044d9363c1cd73430e609180c76 (diff)
downloadopenwrt-f151951a0feb1d4722ea7d24ca4237f6a242a9f2.tar.gz
realtek: drop obsolete kernel patches
These patches hacked the set_eee() and get_eee() functions into the phy_driver. Drop them with no consumer left. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/19906 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/realtek/patches-6.12/706-include-linux-add-phy-ops-for-rtl838x.patch32
-rw-r--r--target/linux/realtek/patches-6.12/708-drivers-net-phy-eee-support-for-rtl838x.patch49
2 files changed, 0 insertions, 81 deletions
diff --git a/target/linux/realtek/patches-6.12/706-include-linux-add-phy-ops-for-rtl838x.patch b/target/linux/realtek/patches-6.12/706-include-linux-add-phy-ops-for-rtl838x.patch
deleted file mode 100644
index ca411d6954..0000000000
--- a/target/linux/realtek/patches-6.12/706-include-linux-add-phy-ops-for-rtl838x.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 2b88563ee5aafd9571d965b7f2093a0f58d98a31 Mon Sep 17 00:00:00 2001
-From: John Crispin <john@phrozen.org>
-Date: Thu, 26 Nov 2020 12:02:21 +0100
-Subject: phy: Add PHY ops for rtl838x EEE
-
-* rename the target to realtek
-* add refactored DSA driver
-* add latest gpio driver
-* lots of arch cleanups
-* new irq driver
-* additional boards
-
-Submitted-by: Bert Vermeulen <bert@biot.com>
-Submitted-by: Birger Koblitz <mail@birger-koblitz.de>
-Submitted-by: Sander Vanheule <sander@svanheule.net>
-Submitted-by: Bjørn Mork <bjorn@mork.no>
-Submitted-by: John Crispin <john@phrozen.org>
----
- include/linux/phy.h | 4 ++++
- 1 file changed, 4 insertions(+)
-
---- a/include/linux/phy.h
-+++ b/include/linux/phy.h
-@@ -1227,6 +1227,8 @@ struct phy_driver {
- */
- int (*led_polarity_set)(struct phy_device *dev, int index,
- unsigned long modes);
-+ int (*get_eee)(struct phy_device *dev, struct ethtool_keee *e);
-+ int (*set_eee)(struct phy_device *dev, struct ethtool_keee *e);
- };
- #define to_phy_driver(d) container_of_const(to_mdio_common_driver(d), \
- struct phy_driver, mdiodrv)
diff --git a/target/linux/realtek/patches-6.12/708-drivers-net-phy-eee-support-for-rtl838x.patch b/target/linux/realtek/patches-6.12/708-drivers-net-phy-eee-support-for-rtl838x.patch
deleted file mode 100644
index cee178c0b9..0000000000
--- a/target/linux/realtek/patches-6.12/708-drivers-net-phy-eee-support-for-rtl838x.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 2b88563ee5aafd9571d965b7f2093a0f58d98a31 Mon Sep 17 00:00:00 2001
-From: John Crispin <john@phrozen.org>
-Date: Thu, 26 Nov 2020 12:02:21 +0100
-Subject: net: phy: EEE support for rtl838x
-
-* rename the target to realtek
-* add refactored DSA driver
-* add latest gpio driver
-* lots of arch cleanups
-* new irq driver
-* additional boards
-
-Submitted-by: Bert Vermeulen <bert@biot.com>
-Submitted-by: Birger Koblitz <mail@birger-koblitz.de>
-Submitted-by: Sander Vanheule <sander@svanheule.net>
-Submitted-by: Bjørn Mork <bjorn@mork.no>
-Submitted-by: John Crispin <john@phrozen.org>
----
- drivers/net/phy/phylink. | 14 +++++++++++--
- 1 file changed, 12 insertions(+), 2 deletions(-)
-
---- a/drivers/net/phy/phylink.c
-+++ b/drivers/net/phy/phylink.c
-@@ -2877,8 +2877,11 @@ int phylink_ethtool_get_eee(struct phyli
-
- ASSERT_RTNL();
-
-- if (pl->phydev)
-+ if (pl->phydev) {
-+ if (pl->phydev->drv->get_eee)
-+ return pl->phydev->drv->get_eee(pl->phydev, eee);
- ret = phy_ethtool_get_eee(pl->phydev, eee);
-+ }
-
- return ret;
- }
-@@ -2895,8 +2898,11 @@ int phylink_ethtool_set_eee(struct phyli
-
- ASSERT_RTNL();
-
-- if (pl->phydev)
-+ if (pl->phydev) {
-+ if (pl->phydev->drv->set_eee)
-+ return pl->phydev->drv->set_eee(pl->phydev, eee);
- ret = phy_ethtool_set_eee(pl->phydev, eee);
-+ }
-
- return ret;
- }