net: phy: avoid unneeded MDIO reads in genphy_read_status
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 24 Apr 2019 19:49:30 +0000 (21:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Apr 2019 23:48:04 +0000 (19:48 -0400)
commit88d6272acaaa4bfb03da0a87a8754ec431471680
tree23903a4bcfafd0aba4a61723186a9952752a6e2e
parentc1a92c0a6c564011855eb7e3b3d9aaf86ad993f4
net: phy: avoid unneeded MDIO reads in genphy_read_status

Considering that in polling mode each link drop will be latched,
settings can't have changed if link was up and is up.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c