summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/phy_device.c
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2019-02-18 20:29:36 +0100
committerDavid S. Miller <davem@davemloft.net>2019-02-21 12:57:25 -0800
commit51f9f234dac5284333a047b7906f3095d410e6c3 (patch)
tree07416998503f1924f4d50e3343d43f70ae4e903b /drivers/net/phy/phy_device.c
parent40d5432cd50edf2b8a8a466a2ad48b487fec17f6 (diff)
downloadtalos-op-linux-51f9f234dac5284333a047b7906f3095d410e6c3.tar.gz
talos-op-linux-51f9f234dac5284333a047b7906f3095d410e6c3.zip
net: phy: don't use 10BaseT/half as default in genphy_read_status
If link partner and we can't agree on any mode, then it doesn't make sense to pretend we would have agreed on 10/half. Therefore set a proper default. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/phy_device.c')
-rw-r--r--drivers/net/phy/phy_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
index 803197fdd87d..4bb3b6c2894e 100644
--- a/drivers/net/phy/phy_device.c
+++ b/drivers/net/phy/phy_device.c
@@ -1785,8 +1785,8 @@ int genphy_read_status(struct phy_device *phydev)
mii_lpa_mod_linkmode_lpa_t(phydev->lp_advertising, lpa);
- phydev->speed = SPEED_10;
- phydev->duplex = DUPLEX_HALF;
+ phydev->speed = SPEED_UNKNOWN;
+ phydev->duplex = DUPLEX_UNKNOWN;
phydev->pause = 0;
phydev->asym_pause = 0;
OpenPOWER on IntegriCloud