diff options
author | Luka Perkov <luka@openwrt.org> | 2015-04-11 10:28:14 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2015-04-11 10:28:14 +0000 |
commit | 88655056656fdbd9d021d8de11a6077fb49428da (patch) | |
tree | d3b641c3c5876ee5e79c67034a95a8fd532a4077 /target/linux/generic/patches-3.14/072-net-phy-Check-for-aneg-completion-before-setting-sta.patch | |
parent | b66b0ae6323fea7dedd400785c556a39a30cdf4f (diff) | |
download | mtk-20170518-88655056656fdbd9d021d8de11a6077fb49428da.zip mtk-20170518-88655056656fdbd9d021d8de11a6077fb49428da.tar.gz mtk-20170518-88655056656fdbd9d021d8de11a6077fb49428da.tar.bz2 |
generic: drop 3.14
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 45375
Diffstat (limited to 'target/linux/generic/patches-3.14/072-net-phy-Check-for-aneg-completion-before-setting-sta.patch')
-rw-r--r-- | target/linux/generic/patches-3.14/072-net-phy-Check-for-aneg-completion-before-setting-sta.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/target/linux/generic/patches-3.14/072-net-phy-Check-for-aneg-completion-before-setting-sta.patch b/target/linux/generic/patches-3.14/072-net-phy-Check-for-aneg-completion-before-setting-sta.patch deleted file mode 100644 index 8e25f8c..0000000 --- a/target/linux/generic/patches-3.14/072-net-phy-Check-for-aneg-completion-before-setting-sta.patch +++ /dev/null @@ -1,35 +0,0 @@ -From: Balakumaran Kannan <kumaran.4353@gmail.com> -Date: Thu, 24 Apr 2014 08:22:47 +0530 -Subject: [PATCH] net phy: Check for aneg completion before setting state to - PHY_RUNNING - -phy_state_machine should check whether auto-negotiatin is completed -before changing phydev->state from PHY_NOLINK to PHY_RUNNING. If -auto-negotiation is not completed phydev->state should be set to -PHY_AN. - -Signed-off-by: Balakumaran Kannan <kumaran.4353@gmail.com> -Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> -Signed-off-by: David S. Miller <davem@davemloft.net> ---- - ---- a/drivers/net/phy/phy.c -+++ b/drivers/net/phy/phy.c -@@ -744,6 +744,17 @@ void phy_state_machine(struct work_struc - break; - - if (phydev->link) { -+ if (AUTONEG_ENABLE == phydev->autoneg) { -+ err = phy_aneg_done(phydev); -+ if (err < 0) -+ break; -+ -+ if (!err) { -+ phydev->state = PHY_AN; -+ phydev->link_timeout = PHY_AN_TIMEOUT; -+ break; -+ } -+ } - phydev->state = PHY_RUNNING; - netif_carrier_on(phydev->attached_dev); - phydev->adjust_link(phydev->attached_dev); |