net: phy: read MII_CTRL1000 in genphy_read_status only if needed
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 15 Aug 2019 11:15:19 +0000 (13:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Aug 2019 18:41:49 +0000 (11:41 -0700)
commit916e571ebad37b820a2a4465dc2ea7643f2007fc
tree897488759c150d6bd9cce66b513d6f036f149d83
parenta46b5b6c27018102a4fe690d6516f5d5556646b7
net: phy: read MII_CTRL1000 in genphy_read_status only if needed

Value of MII_CTRL1000 is needed only if LPA_1000MSFAIL is set.
Therefore move reading this register.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c