]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Merge branch 'net-stmmac-deprecate-snps-en-tx-lpi-clockgating-property'
authorPaolo Abeni <pabeni@redhat.com>
Wed, 19 Mar 2025 17:06:48 +0000 (18:06 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Wed, 19 Mar 2025 17:06:49 +0000 (18:06 +0100)
commit7602eb8734496177e1281734e7485cdd3305a53c
tree25502b91b80668b8f76b37d35156407aadc79ebd
parent4df2ebfca6e20f3d81377e50b0238fe47b714c37
parentcf0a96de397e06e6cf3e0f4c10d6cb60e6166d2d
Merge branch 'net-stmmac-deprecate-snps-en-tx-lpi-clockgating-property'

Russell King says:

====================
net: stmmac: deprecate "snps,en-tx-lpi-clockgating" property

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.
====================

Link: https://patch.msgid.link/Z9FVHEf3uUqtKzyt@shell.armlinux.org.uk
Signed-off-by: Paolo Abeni <pabeni@redhat.com>