[PATCH net-next v2 0/8] net: stmmac: mdio related cleanups
Maxime Chevallier
maxime.chevallier at bootlin.com
Fri Mar 6 05:49:43 PST 2026
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 at 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(-)
>
More information about the linux-arm-kernel
mailing list