]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: phylink: add phylink_link_is_up() helper
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 15 Jan 2025 20:42:37 +0000 (20:42 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Jan 2025 01:22:59 +0000 (17:22 -0800)
commita17ceec62f81cebadcaa6f15ca656ff5cbe77a52
tree9139e76148a6921e19b6043f905393f0c63a23a0
parenta00e0d34c0362a69369f212b8be1be1f6f4c365d
net: phylink: add phylink_link_is_up() helper

Add a helper to determine whether the link is up or down. Currently
this is only used in one location, but becomes necessary to test
when reconfiguring EEE.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/E1tYADl-0014Ph-EV@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phylink.c