Skip to content

Commit

Permalink
staging: octeon: fix broken phylib usage
Browse files Browse the repository at this point in the history
Commit 2b3e88e ("net: phy: improve phy state checking")
added checks for phylib usage, and this triggers with OCTEON ethernet
and results in broken networking.

Fix by replacing phy_start_aneg() with phy_start().

Fixes: 2b3e88e ("net: phy: improve phy state checking")
Signed-off-by: Aaro Koskinen <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
aakoskin authored and gregkh committed Jan 30, 2019
1 parent f17b5f0 commit 49230b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/octeon/ethernet-mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ int cvm_oct_phy_setup_device(struct net_device *dev)
return -ENODEV;

priv->last_link = 0;
phy_start_aneg(phydev);
phy_start(phydev);

return 0;
no_phy:
Expand Down

0 comments on commit 49230b4

Please sign in to comment.