net: stmmac: block PHY RXC clock-stop
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 20 Mar 2025 22:11:27 +0000 (22:11 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Mar 2025 14:58:04 +0000 (07:58 -0700)
commitdd557266cf5fb01a8cd85482dd258c1e172301d1
treebfbd662cf70a8cefc5ad9353998281f137045845
parentddf4bd3f738485c84edb98ff96a5759904498e70
net: stmmac: block PHY RXC clock-stop

The DesignWare core requires the receive clock to be running during
certain operations. Ensure that we block PHY RXC clock-stop during
these operations.

This is a best-efforts change - not everywhere can be covered by this
because of net's core locking, which means we can't access the MDIO
bus to configure the PHY to disable RXC clock-stop in certain areas.
These are marked with FIXME comments.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1tvO6p-008Vjz-Qy@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c