mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-03 09:12:05 +08:00
generic: 6.12: fix patch adding EEE-support to mtk_eth_soc
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>
This commit is contained in:
parent
b776caf080
commit
9ac7c9dbf1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user