]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: stm32: use PHY capability for TX clock stop
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 12 Mar 2025 09:34:36 +0000 (09:34 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Wed, 19 Mar 2025 17:06:32 +0000 (18:06 +0100)
commita5bc19e2abeb570ff60f973dec84807ec8d3d695
tree32d61c1e37489d460da1633a5c8bdac303ac933e
parent5f250bd72a01fe6bd89b71393a09c0ab1d408645
net: stmmac: stm32: use PHY capability for TX clock stop

Whether the MII transmit clock can be stopped is primarily a property
of the PHY (there is a capability bit that should be checked first.)
Whether the MAC is capable of stopping the transmit clock is a separate
issue, but this is already handled by the core DesignWare MAC code.

Add the flag to allow the stmmac core to use the PHY capability.

Cc: Christophe Roullier <christophe.roullier@st.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1tsIU0-005vGL-17@rmk-PC.armlinux.org.uk
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c