aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/patches-4.9/404-net-phy-restart-phy-autonegotiation-after-EEE-advert.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-04-09 09:49:44 +0200
committerFelix Fietkau <nbd@nbd.name>2018-04-19 14:38:36 +0200
commit57a7595a289e80a34f166e66f3cf9191ef772eb3 (patch)
treedbf5a762cfab0cf7429b9104274fba7ef2646176 /target/linux/mvebu/patches-4.9/404-net-phy-restart-phy-autonegotiation-after-EEE-advert.patch
parenta656ea0bdb5d3d4a4948457942e84faa5a4f5cfe (diff)
downloadupstream-57a7595a289e80a34f166e66f3cf9191ef772eb3.tar.gz
upstream-57a7595a289e80a34f166e66f3cf9191ef772eb3.tar.bz2
upstream-57a7595a289e80a34f166e66f3cf9191ef772eb3.zip
mvebu: drop linux 4.4 and 4.9 support
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/mvebu/patches-4.9/404-net-phy-restart-phy-autonegotiation-after-EEE-advert.patch')
-rw-r--r--target/linux/mvebu/patches-4.9/404-net-phy-restart-phy-autonegotiation-after-EEE-advert.patch53
1 files changed, 0 insertions, 53 deletions
diff --git a/target/linux/mvebu/patches-4.9/404-net-phy-restart-phy-autonegotiation-after-EEE-advert.patch b/target/linux/mvebu/patches-4.9/404-net-phy-restart-phy-autonegotiation-after-EEE-advert.patch
deleted file mode 100644
index c768075d35..0000000000
--- a/target/linux/mvebu/patches-4.9/404-net-phy-restart-phy-autonegotiation-after-EEE-advert.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From: Russell King <rmk+kernel@armlinux.org.uk>
-Date: Thu, 5 Jan 2017 12:21:09 +0000
-Subject: [PATCH] net: phy: restart phy autonegotiation after EEE
- advertisment change
-
-When the EEE advertisment is changed, we should restart autonegotiation
-to update the link partner with the new EEE settings. Add this trigger
-but only if the advertisment has changed.
-
-Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
----
-
---- a/drivers/net/phy/phy.c
-+++ b/drivers/net/phy/phy.c
-@@ -1352,19 +1352,36 @@ EXPORT_SYMBOL(phy_ethtool_get_eee);
- */
- int phy_ethtool_set_eee(struct phy_device *phydev, struct ethtool_eee *data)
- {
-- int cap, adv;
-+ int cap, old_adv, adv, ret;
-
- /* Get Supported EEE */
- cap = phy_read_mmd(phydev, MDIO_MMD_PCS, MDIO_PCS_EEE_ABLE);
- if (cap < 0)
- return cap;
-
-+ old_adv = phy_read_mmd(phydev, MDIO_MMD_AN, MDIO_AN_EEE_ADV);
-+ if (old_adv < 0)
-+ return old_adv;
-+
- adv = ethtool_adv_to_mmd_eee_adv_t(data->advertised) & cap;
-
- /* Mask prohibited EEE modes */
- adv &= ~phydev->eee_broken_modes;
-
-- return phy_write_mmd(phydev, MDIO_MMD_AN, MDIO_AN_EEE_ADV, adv);
-+ if (old_adv != adv) {
-+ ret = phy_write_mmd(phydev, MDIO_MMD_AN, MDIO_AN_EEE_ADV, adv);
-+ if (ret < 0)
-+ return ret;
-+
-+ /* Restart autonegotiation so the new modes get sent to the
-+ * link partner.
-+ */
-+ ret = phy_restart_aneg(phydev);
-+ if (ret < 0)
-+ return ret;
-+ }
-+
-+ return 0;
- }
- EXPORT_SYMBOL(phy_ethtool_set_eee);
-