commit | 0efc286a923874f0c243e5766cce54e9429ed949 | [log] [tgz] |
---|---|---|
author | Russell King <rmk+kernel@armlinux.org.uk> | Tue Dec 17 13:39:16 2019 +0000 |
committer | David S. Miller <davem@davemloft.net> | Thu Dec 19 12:52:34 2019 -0800 |
tree | 82a953da6d4437afab352eef145a5f95fc9e0f7e | |
parent | 2a10ab043ac5a658225ee77852db7942de9ac4c5 [diff] |
net: phy: provide and use genphy_read_status_fixed() There are two drivers and generic code which contain exactly the same code to read the status of a PHY operating without autonegotiation enabled. Rather than duplicate this code, provide a helper to read this information. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>