diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2019-11-21 12:09:40 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-01-27 10:33:25 +0000 |
commit | 2c305d3bc40f7eada661a6d186e0779acc364294 (patch) | |
tree | c5f4df6b4f71fd1afa54fd6816fc8b35ce54678f /Documentation | |
parent | 4a0389601ff00ec8ddab6e387e49eca764e95a5e (diff) |
net: phy: marvell: consolidate phy status reading
marvell_read_status_page_an() always reads the PHY status register, but
marvell_update_link() has already done this. Rather than wastefully
reading the register twice in quick succession, read it once in
marvell_read_status_page() and use the result for both.
This makes marvell_update_link() rather pointless, so move it into
marvell_read_status_page().
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions