]> Git Repo - linux.git/commit
net: phy: improve genphy_read_status
authorHeiner Kallweit <[email protected]>
Sat, 30 Mar 2019 09:22:45 +0000 (10:22 +0100)
committerDavid S. Miller <[email protected]>
Tue, 2 Apr 2019 01:06:43 +0000 (18:06 -0700)
commitb6163f194c699ff75fa6aa4565b1eb8946c2c652
tree6aebc374c6e8e064303f9bb6dc1f4e4b615eec3b
parent9dfe6aa077f5d75febcb3db276802973f6b51b52
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/phy/phy_device.c
This page took 0.052995 seconds and 4 git commands to generate.