diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-03-30 10:22:45 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-01 18:06:43 -0700 |
commit | b6163f194c699ff75fa6aa4565b1eb8946c2c652 (patch) | |
tree | 6aebc374c6e8e064303f9bb6dc1f4e4b615eec3b /net/decnet | |
parent | 9dfe6aa077f5d75febcb3db276802973f6b51b52 (diff) | |
download | linux-b6163f194c699ff75fa6aa4565b1eb8946c2c652.tar.bz2 |
net: phy: improve genphy_read_status
This patch improves few aspects of genphy_read_status():
- Don't initialize lpagb, it's not needed.
- Move initializing phydev->speed et al before the if clause.
- In auto-neg case, skip populating lp_advertising if we
don't have a link. This avoids quite some unnecessary
MDIO reads in case of phylib polling mode.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet')
0 files changed, 0 insertions, 0 deletions