]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
generic: 6.12: fix patch adding EEE-support to mtk_eth_soc
authorDaniel Golle <daniel@makrotopia.org>
Thu, 8 May 2025 01:59:19 +0000 (02:59 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 26 May 2025 15:58:03 +0000 (16:58 +0100)
Upstream now uses struct ethtool_keee instead of struct ethtool_eee
as parameter to EEE-related functions. Follow that change and modify
the patch accordingly.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/generic/backport-6.12/753-v6.15-net-ethernet-mediatek-add-EEE-support.patch

index 9d26480bdf9c04ac11410d918fec0e03e90e22eb..2ca3f2ef0041112b6094892068bad5de8626dee7 100644 (file)
@@ -43,7 +43,7 @@ Signed-off-by: Qingfang Deng <dqfext@gmail.com>
        return phylink_ethtool_set_pauseparam(mac->phylink, pause);
  }
  
-+static int mtk_get_eee(struct net_device *dev, struct ethtool_eee *eee)
++static int mtk_get_eee(struct net_device *dev, struct ethtool_keee *eee)
 +{
 +      struct mtk_mac *mac = netdev_priv(dev);
 +      u32 reg;
@@ -60,7 +60,7 @@ Signed-off-by: Qingfang Deng <dqfext@gmail.com>
 +      return 0;
 +}
 +
-+static int mtk_set_eee(struct net_device *dev, struct ethtool_eee *eee)
++static int mtk_set_eee(struct net_device *dev, struct ethtool_keee *eee)
 +{
 +      struct mtk_mac *mac = netdev_priv(dev);
 +      u32 txidle_thd_ms, reg;