diff options
author | 2019-01-27 21:54:50 +0200 | |
---|---|---|
committer | 2019-01-30 15:31:24 +0100 | |
commit | 49230b49c4398765feba809ac27ae09562cbead1 (patch) | |
tree | cdec9e7345900e445238a6b9864da250139c7d74 /drivers/staging/octeon | |
parent | Linux 5.0-rc4 (diff) | |
download | linux-49230b49c4398765feba809ac27ae09562cbead1.tar.gz linux-49230b49c4398765feba809ac27ae09562cbead1.tar.bz2 linux-49230b49c4398765feba809ac27ae09562cbead1.zip |
staging: octeon: fix broken phylib usage
Commit 2b3e88ea6528 ("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: 2b3e88ea6528 ("net: phy: improve phy state checking")
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/octeon')
-rw-r--r-- | drivers/staging/octeon/ethernet-mdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/octeon/ethernet-mdio.c b/drivers/staging/octeon/ethernet-mdio.c index 2848fa71a33d..d6248eecf123 100644 --- a/drivers/staging/octeon/ethernet-mdio.c +++ b/drivers/staging/octeon/ethernet-mdio.c @@ -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: |