]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: dwc-qos: remove tegra_eqos_init()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Sat, 12 Apr 2025 08:08:29 +0000 (09:08 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 00:12:40 +0000 (17:12 -0700)
commitdadc3a6be46987d9417732e5b59476267bba76ed
treec6aa7a93b52f2ffd06aca3a8cf1cf9a128fc12c5
parent505b930929db65bbbeb26d3b13c2919084891e9f
net: stmmac: dwc-qos: remove tegra_eqos_init()

tegra_eqos_init() initialises the 1US TIC counter for the EEE timers.
However, the DWGMAC core is reset after this write, which clears
this register to its default.

However, dwmac4_core_init() configures this register using the same
clock, which happens after reset - thus this is the write which
ensures that the register is correctly configured.

Therefore, tegra_eqos_init() is not required and is removed. This also
means eqos->clk_slave can also be removed.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1u3Vuf-000E7g-U4@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c