]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: phylink: add functions to block/unblock rx clock stop
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 20 Mar 2025 22:11:22 +0000 (22:11 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Mar 2025 14:58:04 +0000 (07:58 -0700)
commitddf4bd3f738485c84edb98ff96a5759904498e70
tree83df563afabfa5fcd8c3238477021edbfd08bf8e
parent366aeeba79088003307f0f12bb3575fb083cc72a
net: phylink: add functions to block/unblock rx clock stop

Some MACs require the PHY receive clock to be running to complete setup
actions. This may fail if the PHY has negotiated EEE, the MAC supports
receive clock stop, and the link has entered LPI state. Provide a pair
of APIs that MAC drivers can use to temporarily block the PHY disabling
the receive clock.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1tvO6k-008Vjt-MZ@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phylink.c
include/linux/phylink.h