[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <deshe54mqty6ozlcbncliwxfxtszubrn44onswjlmo62lltcvx@42piilxcqwba>
Date: Tue, 25 Feb 2025 21:30:52 +0100
From: Thierry Reding <thierry.reding@...il.com>
To: "Russell King (Oracle)" <linux@...linux.org.uk>
Cc: Andrew Lunn <andrew@...n.ch>, Heiner Kallweit <hkallweit1@...il.com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>, Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>, Emil Renner Berthing <kernel@...il.dk>,
Eric Dumazet <edumazet@...gle.com>, Fabio Estevam <festevam@...il.com>, imx@...ts.linux.dev,
Inochi Amaoto <inochiama@...il.com>, Jakub Kicinski <kuba@...nel.org>,
Jan Petrous <jan.petrous@....nxp.com>, Jon Hunter <jonathanh@...dia.com>,
linux-arm-kernel@...ts.infradead.org, linux-stm32@...md-mailman.stormreply.com,
Maxime Coquelin <mcoquelin.stm32@...il.com>, Minda Chen <minda.chen@...rfivetech.com>, netdev@...r.kernel.org,
NXP S32 Linux Team <s32@....com>, Paolo Abeni <pabeni@...hat.com>,
Pengutronix Kernel Team <kernel@...gutronix.de>, Sascha Hauer <s.hauer@...gutronix.de>,
Shawn Guo <shawnguo@...nel.org>, Thierry Reding <treding@...dia.com>
Subject: Re: [PATCH RFC net-next 0/7] net: stmmac: cleanup transmit clock
setting
On Tue, Feb 18, 2025 at 11:14:39AM +0000, Russell King (Oracle) wrote:
> Hi,
>
> 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.
> Patches 3 through 7 convert the easy-to-convert platforms to use this
> new infrastructure.
>
> .../ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c | 10 +----
> drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c | 5 ++-
> .../net/ethernet/stmicro/stmmac/dwmac-intel-plat.c | 24 ++----------
> drivers/net/ethernet/stmicro/stmmac/dwmac-s32.c | 22 ++---------
> .../net/ethernet/stmicro/stmmac/dwmac-starfive.c | 26 ++-----------
> drivers/net/ethernet/stmicro/stmmac/stmmac.h | 2 +
> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 43 ++++++++++++++++++++++
> include/linux/stmmac.h | 4 ++
> 8 files changed, 65 insertions(+), 71 deletions(-)
Seems to work fine on Jetson TX2, so patches 1-3 are:
Tested-by: Thierry Reding <treding@...dia.com>
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists