sky2: avoid duplicate link up on Optima chip
The Optima version has feature to detect link quickly without PHY interrupt, but it causes duplicate link up events. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4b7c47aa22
commit
9badba2543
1 changed files with 2 additions and 1 deletions
|
@ -2146,7 +2146,8 @@ static void sky2_phy_intr(struct sky2_hw *hw, unsigned port)
|
||||||
istatus, phystat);
|
istatus, phystat);
|
||||||
|
|
||||||
if (istatus & PHY_M_IS_AN_COMPL) {
|
if (istatus & PHY_M_IS_AN_COMPL) {
|
||||||
if (sky2_autoneg_done(sky2, phystat) == 0)
|
if (sky2_autoneg_done(sky2, phystat) == 0 &&
|
||||||
|
!netif_carrier_ok(dev))
|
||||||
sky2_link_up(sky2);
|
sky2_link_up(sky2);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue