All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/7] net: stmmac: deprecate "snps,en-tx-lpi-clockgating" property
@ 2025-03-12  9:34 ` Russell King (Oracle)
  0 siblings, 0 replies; 20+ messages in thread
From: Russell King (Oracle) @ 2025-03-12  9:34 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Albert Ou, Alexandre Ghiti, Alexandre Torgue, Andrew Lunn,
	Christophe Roullier, Conor Dooley, Conor Dooley, David S. Miller,
	devicetree, Emil Renner Berthing, Eric Dumazet,
	Giuseppe Cavallaro, Jakub Kicinski, Jose Abreu,
	Krzysztof Kozlowski, Lad Prabhakar, linux-arm-kernel, linux-riscv,
	linux-stm32, Maxime Coquelin, Minda Chen, netdev, Palmer Dabbelt,
	Paolo Abeni, Paul Walmsley, Rob Herring, Samin Guo

On Sun, Mar 09, 2025 at 03:01:45PM +0000, Russell King (Oracle) wrote:
Hi,

This series deprecates the "snps,en-tx-lpi-clockgating" property for
stmmac.

MII Transmit clock gating, where the MAC hardware supports gating this
clock, is a function of the connected PHY capabilities, which it
reports through its status register.

GMAC versions that support transmit clock gating twiddle the LPITCSE
bit accordingly in the LPI control/status register, which is handled
by the GMAC core specific code.

So, "snps,en-tx-lpi-clockgating" not something that is a GMAC property,
but is a work-around for phylib not providing an interface to determine
whether the PHY allows the transmit clock to be disabled.

This series converts the two SoCs that make use of this property (which,
I hasten to add, is set in the SoC code) to use the PHY capability bit
instead of a DT property, then removes the DT property from the .dtsi,
deprecates it in the snps,dwmac binding, and finally in the stmmac code.

I am expecting some discussion on how to merge this, as I think the
order in which these changes is made is important - we don't want to
deprecate the old way until the new code has landed.

Changes in v2:
- Correct Cc list

 Documentation/devicetree/bindings/net/snps,dwmac.yaml |  1 +
 arch/arm/boot/dts/st/stm32mp151.dtsi                  |  1 -
 arch/riscv/boot/dts/starfive/jh7110.dtsi              |  2 --
 drivers/net/ethernet/stmicro/stmmac/dwmac-starfive.c  |  1 +
 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c     |  1 +
 drivers/net/ethernet/stmicro/stmmac/stmmac.h          |  1 +
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c     | 16 ++++++++++++----
 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c |  5 ++++-
 include/linux/stmmac.h                                |  3 ++-
 9 files changed, 22 insertions(+), 9 deletions(-)

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2025-03-19 17:21 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-12  9:34 [PATCH net-next v2 0/7] net: stmmac: deprecate "snps,en-tx-lpi-clockgating" property Russell King (Oracle)
2025-03-12  9:34 ` Russell King (Oracle)
2025-03-12  9:34 ` [PATCH net-next v2 1/7] net: stmmac: allow platforms to use PHY tx clock stop capability Russell King (Oracle)
2025-03-12  9:34   ` Russell King (Oracle)
2025-03-12  9:34 ` [PATCH net-next v2 2/7] net: stmmac: starfive: use PHY capability for TX clock stop Russell King (Oracle)
2025-03-12  9:34   ` Russell King (Oracle)
2025-03-12  9:34 ` [PATCH net-next v2 3/7] net: stmmac: stm32: " Russell King (Oracle)
2025-03-12  9:34   ` Russell King (Oracle)
2025-03-12  9:34 ` [PATCH net-next v2 4/7] riscv: dts: starfive: remove "snps,en-tx-lpi-clockgating" property Russell King (Oracle)
2025-03-12  9:34   ` Russell King (Oracle)
2025-03-12  9:34 ` [PATCH net-next v2 5/7] ARM: dts: stm32: " Russell King (Oracle)
2025-03-12  9:34   ` Russell King (Oracle)
2025-03-12  9:34 ` [PATCH net-next v2 6/7] dt-bindings: deprecate " Russell King (Oracle)
2025-03-12  9:34   ` Russell King (Oracle)
2025-03-12  9:34 ` [PATCH net-next v2 7/7] net: stmmac: " Russell King (Oracle)
2025-03-12  9:34   ` Russell King (Oracle)
2025-03-13 13:38   ` Lad, Prabhakar
2025-03-13 13:38     ` Lad, Prabhakar
2025-03-19 17:20 ` [PATCH net-next v2 0/7] " patchwork-bot+netdevbpf
2025-03-19 17:20   ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.