From: Maxime Chevallier <maxime.chevallier@bootlin.com>
To: "Russell King (Oracle)" <linux@armlinux.org.uk>,
Andrew Lunn <andrew@lunn.ch>
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Chen-Yu Tsai <wens@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
linux-arm-kernel@lists.infradead.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-sunxi@lists.linux.dev, netdev@vger.kernel.org,
Paolo Abeni <pabeni@redhat.com>,
Samuel Holland <samuel@sholland.org>
Subject: Re: [PATCH net-next v2 0/8] net: stmmac: mdio related cleanups
Date: Fri, 6 Mar 2026 14:49:43 +0100 [thread overview]
Message-ID: <ff7fc863-0f8a-49e2-8e75-ee446a43df34@bootlin.com> (raw)
In-Reply-To: <aald--qJquWGIvmO@shell.armlinux.org.uk>
Hi,
On 05/03/2026 11:42, Russell King (Oracle) wrote:
> Hi,
>
> The first four patches clean up the MDC clock divisor selection code,
> turning the three different ways we choose a divisor into tabular form,
> rather than doing the selection purely in code.
>
> Convert MDIO to use field_prep() which allows a non-constant mask to be
> used when preparing fields.
>
> Then use u32 and the associated typed GENMASK for MDIO register field
> definitions.
>
> Finally, an extra couple of patches that use appropriate types in
> struct mdio_bus_data.
>
> v2:
> - add comments about 300MHz to commit message in patch 1
> - fix incorrect usage of stmmac_sun8i_csr_to_mdc in patch 3
> - fix BIT_u32()->BIT_U32() in patch 8
I have tested this series as a whole on 2 platforms using the dwmac mdio
driver (socfpga - KSZ9031 / imx8mp + KSZ9131), no regressions found. I'm
not stressing the 300M case though.
feel free to add my :
Tested-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Maxime
> drivers/net/ethernet/stmicro/stmmac/common.h | 10 +-
> drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 2 +-
> .../net/ethernet/stmicro/stmmac/dwmac-loongson.c | 11 +--
> drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 9 +-
> .../net/ethernet/stmicro/stmmac/dwmac1000_core.c | 9 +-
> .../net/ethernet/stmicro/stmmac/dwmac100_core.c | 9 +-
> drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 9 +-
> .../net/ethernet/stmicro/stmmac/dwxgmac2_core.c | 18 ++--
> drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 106 ++++++++++++---------
> include/linux/stmmac.h | 6 +-
> 10 files changed, 92 insertions(+), 97 deletions(-)
>
next prev parent reply other threads:[~2026-03-06 13:49 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-05 10:42 [PATCH net-next v2 0/8] net: stmmac: mdio related cleanups Russell King (Oracle)
2026-03-05 10:42 ` [PATCH net-next v2 1/8] net: stmmac: mdio: convert MDC clock divisor selection to tables Russell King (Oracle)
2026-03-05 12:11 ` Russell King (Oracle)
2026-03-05 15:19 ` Jakub Kicinski
2026-03-05 10:42 ` [PATCH net-next v2 2/8] net: stmmac: mdio: use same test for MDC clock divisor lookups Russell King (Oracle)
2026-03-05 10:42 ` [PATCH net-next v2 3/8] net: stmmac: mdio: simplify MDC clock divisor lookup Russell King (Oracle)
2026-03-06 9:01 ` Russell King (Oracle)
2026-03-05 10:42 ` [PATCH net-next v2 4/8] net: stmmac: mdio: convert field prep to use field_prep() Russell King (Oracle)
2026-03-06 13:30 ` Maxime Chevallier
2026-03-05 10:42 ` [PATCH net-next v2 5/8] net: stmmac: use u32 for MDIO register field masks Russell King (Oracle)
2026-03-05 10:42 ` [PATCH net-next v2 6/8] net: stmmac: use GENMASK_U32() for mdio bitfields Russell King (Oracle)
2026-03-06 13:30 ` Maxime Chevallier
2026-03-05 10:42 ` [PATCH net-next v2 7/8] net: stmmac: mdio_bus_data->default_an_inband is boolean Russell King (Oracle)
2026-03-06 13:31 ` Maxime Chevallier
2026-03-05 10:43 ` [PATCH net-next v2 8/8] net: stmmac: make pcs_mask and phy_mask u32 Russell King (Oracle)
2026-03-06 13:32 ` Maxime Chevallier
2026-03-06 13:49 ` Maxime Chevallier [this message]
2026-03-06 23:50 ` [PATCH net-next v2 0/8] net: stmmac: mdio related cleanups patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ff7fc863-0f8a-49e2-8e75-ee446a43df34@bootlin.com \
--to=maxime.chevallier@bootlin.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=linux-sunxi@lists.linux.dev \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=samuel@sholland.org \
--cc=wens@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox