Merge branch 'net-stmmac-cleanup-transmit-clock-setting'
authorJakub Kicinski <kuba@kernel.org>
Fri, 28 Feb 2025 18:20:50 +0000 (10:20 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Feb 2025 18:20:50 +0000 (10:20 -0800)
commit8e7e3d97f9a7eb65c98894e6a8d68eb0c49dec4b
tree4c4762d7bfa16ea5a7be4ba0342beac311cac287
parent56794b5862c5a9aefcf2b703257c6fb93f76573e
parent945db208fbe7fc7687157d0738cdfa832ebab186
Merge branch 'net-stmmac-cleanup-transmit-clock-setting'

Russell King says:

====================
net: stmmac: cleanup transmit clock setting

A lot of stmmac platform code which sets the transmit clock is very
similar - they decode the speed to the clock rate (125, 25 or 2.5 MHz)
and then set a clock to that rate.

The DWMAC core appears to have a clock input for the transmit section
called clk_tx_i which requires this rate.

This series moves the code which sets this clock into the core stmmac
code.

Patch 1 adds a hook that platforms can use to configure the clock rate.
Patch 2 adds a generic implementation.
The remainder of the patches convert the glue code for various platforms
to use this new infrastructure.
====================

Link: https://patch.msgid.link/Z8AtX-wyPal1auVO@shell.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>