net: phy: marvell: don't interpret PHY status unless resolved
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 27 Feb 2020 09:44:49 +0000 (09:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 19:17:21 +0000 (11:17 -0800)
commitb82cf17ff1957ec35eaee7dc519c365ecd06ba38
tree2760bc9d209720e387df4bb60f45f48c8b26d704
parente387f7d5fccf95299135c88b799184c3bef6a705
net: phy: marvell: don't interpret PHY status unless resolved

Don't attempt to interpret the PHY specific status register unless
the PHY is indicating that the resolution is valid.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c