]> www.infradead.org Git - users/willy/pagecache.git/commit
net: phylink: make configuring clock-stop dependent on MAC support
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Sat, 8 Feb 2025 11:52:23 +0000 (11:52 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 12 Feb 2025 00:08:34 +0000 (16:08 -0800)
commit1942b1c6f687b9d1efc93f35239f185a84900e93
treec8a82faf5e66c5174c13ba020485df530461d3f1
parent5805402dcc56241987bca674a1b4da79a249bab7
net: phylink: make configuring clock-stop dependent on MAC support

We should not be configuring the PHYs clock-stop settings unless the
MAC supports phylink managed EEE. Make this dependent on MAC support.

This was noticed in a suspicious RCU usage report from the kernel
test robot (the suspicious RCU usage due to calling phy_detach()
remains unaddressed, but is triggered by the error this was
generating.)

Fixes: 03abf2a7c654 ("net: phylink: add EEE management")
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/E1tgjNn-003q0w-Pw@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phylink.c