]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit828930c1155331fec564d37d976f5570eb1a3d1b
tree23903a4bcfafd0aba4a61723186a9952752a6e2e
parentd4b78a69cedd36589b3ebd7b5f4340f5908a4bf5
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